sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #88639
Re: Ups! med find og -delete option
Fri, 14 Jul 2006 13:37:22 +0200, Michael Rasmussen <mir@xxxxxxxxx> skrev:
On Fri, 14 Jul 2006 12:38:23 +0200, Michael Schmidt wrote:
Betyder det ikke filer større end 1k ?
Svarer selv: Nej. Tilsyneladende ikke.
Jeg c&p lige fra man:
-size n[cwbkMG]
File uses n units of space. The following suffixes can be
used:
`b' for 512-byte blocks (this is the default if no
suffix is
used)
`c' for bytes
`w' for two-byte words
`k' for Kilobytes (units of 1024 bytes)
`M' for Megabytes (units of 1048576 bytes)
`G' for Gigabytes (units of 1073741824 bytes)
The size does not count indirect blocks, but it does
count
blocks in sparse files that are not actually allocated.
Bear in
mind that the `%k' and `%b' format specifiers of -printf
handle
sparse files differently. The `b' suffix always
denotes
512-byte blocks and never 1 Kilobyte blocks, which is
different
to the behaviour of -ls.
Havde skam læst man siden (efter jeg førsøgte mig med, først ingen suffix
og siden b - "sjovt" nok med samme resultat :(
Syn's det er lidt tarveligt at b ikke står for byte(s).
Men du har ret i at der ikke skal streg/minus foran størrelsen.
'find ./ -size 1k -delete' reducerede mine 46655 filer til 138, der alle
har et brugbart indhold :)
--
Med venlig hilsen
/Zmit/
RLU # 314205
References