Gorka:
>
> 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.
J.
--
If I was Mark Chapman I would have shot John Lennon with a water pistol.
[Agree] [Disagree]
<http://www.slowlydownward.com/NODATA/data_enter2.html>
Attachment:
signature.asc
Description: Digital signature