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.
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.