持續更新。code
grep:grep pattern files, e.g.input
grep "aug" sample.txt
input | grep pattern, e.g.file
ls -l | grep -i "*.txt" 其中-i意思是大小寫不敏感 cat sample.txt | grep "aug"