Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图在 &pattern 的初始命令中使用 less(在 cygwin 中):
printf 'A\nB\n' | less '+&B'
给我屏幕左上角的文本“&/B”,我必须按 ENTER 才能进行实际过滤。
我期待它立即进行过滤。
( printf 'A\nB\n' | less '+/B' Here line B is at top of screen, without the need for pressing ENTER )
printf 'A\nB\n' | less '+&B^M'
^Mbash 上的 CTRL+v 加 RETURN 在哪里
^M