Comment on How do I "ls -R | cat | grep print" ?

bjoern_tantau@swg-empire.de ⁨5⁩ ⁨months⁩ ago

Note, you almost never have to use cat. Just leaving it out would have been enough to find your file (although find is still better).

When you want to find a string in a file it’s also enough to use grep string file instead of cat file | grep string. You can even search through multiple files with grep string file1 file2 file* and grep will tell you in which file the string was found.

source
Sort:hotnewtop