02-10-2006
2,
0
Join Date: Feb 2006
Last Activity: 13 February 2006, 3:01 AM EST
Posts: 2
Thanks Given: 0
Thanked 0 Times in 0 Posts
Help (Piping ls, tr, cut)
I have to:
pipe ls, tr, and cut to output the size (in bytes) and name of all of the files/dirs in the current directory (including any hidden ones), with the size at the beginning of the line, followed by a single tab character, followed by the the filename.
I don't know what the point of using tr is. So far what I've been doing is:
ls -al | cut -d' ' -f5
the problem i'm having is grabbing the right field of information from ls