3 ms·
Pipe and read per line: ls /mnt/dir | while read line; do cp -v "$line" /elsewhere # substitute with something fancy # [ $? -eq 0 ] || cp -v "$li
by turtleyacht 2y ago
Pipe and read per line:
ls /mnt/dir | while read line; do
cp -v "$line" /elsewhere
# substitute with something fancy
# [ $? -eq 0 ] || cp -v "$line" /elsewhere
done