RE: Problem with the global weigh of several files

2011-05-27 Thread Gorka
mayo de 2011 23:51 > Para: debian-user@lists.debian.org > Asunto: Re: Problem with the global weigh of several files > > >> On Thu, 26 May 2011 17:12:25 +0200, > >> "Gorka" said: > > G> I am looking for the best way of appending commands to obt

Re: Problem with the global weigh of several files

2011-05-26 Thread Karl Vogel
>> On Thu, 26 May 2011 17:12:25 +0200, >> "Gorka" said: G> I am looking for the best way of appending commands to obtain the global G> amount of Mb of the modified files of my PC. Something like this: G> find ./ -mtime -7 | du -Sch #!/bin/ksh # filesize summary; optional argument is starting d

Re: Problem with the global weigh of several files

2011-05-26 Thread Jochen Schulz
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/10

Problem with the global weigh of several files

2011-05-26 Thread Gorka
Hi. 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 Any idea?