[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem with the global weigh of several files

> I am looking for the best way of appending commands to obtain the global
> amount of Mb of the modified files of my PC.
> Something like this:
> find ./  -mtime -7 | du -Sch

In bytes:

find ./ -mtime -7 -ls | awk 'BEGIN { s=0 } { s+=$7 } END { print s } '

You can use 'print s/1024' in order to get kiB and so on.

If I was Mark Chapman I would have shot John Lennon with a water pistol.
[Agree]   [Disagree]

Attachment: signature.asc
Description: Digital signature

Reply to: