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
>> 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
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
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?
4 matches
Mail list logo