Link to home
Start Free TrialLog in
Avatar of stummj
stummjFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Using awk to calcluate average file size

Hi I want to use awk to find out:

a) The total number of files in a directory
b) The total filesize
c) The average filesize

I know I need to ls-l | awk ....something ....

but its the something Im stuck on!! Can anyone help?
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stummj

ASKER

Thanks Ozo