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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the file size from ls -l command

Status
Not open for further replies.

nappaji

Programmer
Mar 21, 2001
76
US
Hello,
When I do a ls -l command, the 5th column gives me the file size. How do I extract this column using cut or some other command.
I am a novice to awk . How do I do it in awk??
Is there another way to check the file size using scripting???

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top