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

Shadow@lemmy.ca ⁨10⁩ ⁨months⁩ ago

To answer your og question since it is a valuable tool to know about, xargs.

ls | xargs cat | grep print

Should do what you want. Unless your file names have spaces, then you should probably not use this.

source
Sort:hotnewtop