Re: Awk

another less straight forward way would be something like:

du |sort -nr |more

this will show you the size of ALL files below you current working directory starting with the largest files at the top and the smallest at the bottom. If you want file sizes in Kbytes then add a -k to the du command

ie. du -k | sort -rn | more

But I would use the find command as it is a lot cooler and a better command to master in the long run.

Dave

Clothes make the man, Naked people have little to no effect on society

Re: Awk

If you want to save time, have a look at 'locate'.First do 'updatedb' (it's done 5 mn after system boot each time, so don't do it if you didn't install sth new).Then locate 'filename', it search in the database made thru updatedb, it's faster than find command...

Re: Awk

You can use this script (I regularly use on HPUX)create the script then run ls -l and pipe into the script (I named it newbgfile)ll | newbgfile 66 is the minum number of digit for the size.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#!/bin/ksh