2016-08-27 35 views
0

如何搜索包含字符串--->的文件?grep爲字符串「--->」

$ cat arrow 
---> 
$ grep ---> * 
-bash: *: ambiguous redirect 
$ grep "--->" * 
grep: unrecognized option '--->' 
Usage: grep [OPTION]... PATTERN [FILE]... 
Try `grep --help` for more information. 
$ grep "\-\-\-\>" * 
$ 

回答

相關問題