New answers tagged shell-builtin
You could either pass the output into xargs or into while. for i in ...; done | xargs -n 1 basename or for i in ...; done | while read filename; do basename $filename; done Both are about the same. Xargs would be a little faster, but not as flexible. You could read the manpage for xargs(1) or the man page for bash. Incidentally, your sed statements ...
Top 50 recent answers are included