Comment on How do I "ls -R | cat | grep print" ?
surewhynotlem@lemmy.world 10 months ago
It’s valuable to learn how to do an inline loop
ls | while read A; do cat $A | grep print; done
This will read each line of ls into variable A, then it’ll get and grep each one.
sighofannoyance@lemmy.world 10 months ago
thank you