Grep

From CleanPosts

Jump to: navigation, search

Find all the places in a directory that mentions womp rats

grep -R --color "womp rats"

Print the lines of file2 that are missing in file1

grep -vxFf file1.txt file2.txt

View a text file with line numbers added

grep -n ^ countzero.txt | less

Personal tools
Strangers In Paradise