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!

Simple awk command

Status
Not open for further replies.

dsm666

IS-IT--Management
Mar 9, 2004
40
US
when I do a list of files, how can use awk to print files larger than 10MB

ls -l | awk '[print $4

thanks much
 
man find


vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
vlad, thanks for taking the time.
find won't work for me as I am using a list command from an application they call their list command cmulist.
 
what's a sample output of 'cmulist'?

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
given Solaris 'ls' - files greater than 10K:

Code:
ls -l | nawk -v c=5 -v s=10000 '$c+0 > s'

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
WHENTSTI 5249 when_test_file.txt 37 04/01/08-14:15 CRTFY WHENTSTI
WHENTSTI 5250 when_test_file.txt 37 04/01/08-14:30 CRTFY WHENTSTI
 
Is my previous posting for Solaris 'ls' helpful?
Try modifying it for your 'cmulist' sample output.

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top