Hi friends! 🤓 I am on a gnulinux and trying to list all files in the active directory and it’s subdirectories. I then want to pipe the output to “cat”. I want to pipe the output from cat into grep.
Please help! 😅
Hi friends! 🤓 I am on a gnulinux and trying to list all files in the active directory and it’s subdirectories. I then want to pipe the output to “cat”. I want to pipe the output from cat into grep.
Please help! 😅
grep -r print .I.e. Grep on
printrecursively from.(current directory)Or for more advance search
find . -name "*.sh" -exec grep -H print {} \;I.e find all files with sh extension and run grep on it (
{}become the filename).-Hto include filename in output.this is great ty!