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.
我希望 grep 通过行继续返回结果,即输入文件,如:
$ cat input.txt abba \ jjjj \ nnnn $ grep "abba ?" input.txt abba jjjj nnnn
我似乎无法让它工作。
也许您正在寻找类似的东西,在用换行符替换斜杠后在文件中搜索...
tr '\\' '\n' < input.txt | grep something