ls -l | sed -e 's/ */ /g' | cut -d' ' -f9 Get the ninth field. Or in Perl land: ls -l | perl -e 'while () { @a = split(/\s+/,$_); print $a[-1] . "\n";}'