[NTLUG:Discuss] find: 1G < 1024M?
Stuart Johnston
saj at thecommune.net
Tue Oct 19 14:22:36 CDT 2010
On 10/19/2010 02:18 PM, Patrick R. Michaud wrote:
> On Tue, Oct 19, 2010 at 01:57:19PM -0500, Stuart Johnston wrote:
>> I have this command to find files smaller than a particular size:
>>
>> find ./ -regex ".*\.[mn][pu][gv]" -size -1G -type f -exec ls -lh {}
>> \; | awk '{ print $8 ": " $5 }'
>
> Out of curiosity, what does "find --version" say?
find (GNU findutils) 4.4.2
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Built using GNU gnulib version e5573b1bad88bfabcda181b9e0125fb0c52b7d3b
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS()
CBO(level=0)
This is on Ubuntu 10.04. Same behavior on Debian Lenny, find 4.4.0.
More information about the Discuss
mailing list