Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

filename and filesize 2

Status
Not open for further replies.

hfaix

MIS
Nov 25, 2003
596
US
Is their an easy way to list "just" the filename and filesize?

I thought this might be an ls flag, but I can't find one.

Thanks!



 
Or a lot faster, since it doesn't have to count the characters in the file:

Code:
ls -l | awk '{print $9,$5}'

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top