Simple Linux Find Command

find . -name "name-of-file"

Find a File by Name and Delete it

find . -type f -name "name-of-the-file.bak" -exec rm {} \;

 

 

 

Linux Find Command – Find Content in Files

 

How to find content on a specific line of a file

Using sed:

sed '5!d' file

Using awk:

awk 'NR==5' file