Chandler
不是我愛寫,是因為腦袋的RAM不夠大,不寫下來馬上就忘了....
2012年1月11日 星期三
Linux grep command for multiple pattern example
Search multiple pattern in files.
command: grep -e PATTERN1 -e PATTERN2 -e PATTERN3 your-source-file
You can have a file to keep your pattern and filter by it.
command: grep -f pattern-file your-source-file
沒有留言:
張貼留言
‹
›
首頁
查看網路版
沒有留言:
張貼留言