Friday, July 24, 2020

Find a string in a directory or from a list of files



for i in * ; do less $i | grep 'w15857840';echo $i; done;


This command checks all the files and prints the string wherever it finds it.

No comments:

Post a Comment

zip an empty folder structure

  find . -maxdepth 1000 -type d -exec zip ftpeu.zip {} +