Cool little trick!
this post was submitted on 19 Feb 2026
12 points (80.0% liked)
Linux
12407 readers
243 users here now
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
founded 2 years ago
MODERATORS
Don't steal people's content, at least crosspost properly.
See the link in this users profile which explains why
I know why. The OP decided to post where they decided to post, it's frankly unethical to steal OP's shit and not crosspost properly.
Or use a while-read loop anyway?
while read -r foo; do
cmd "${foo}"
done < <(ls -1)
(But don't script ls)
The find example should just use -exec grep "USB" {} + also, though -exec generally is the correct way to do this.