find /base/directory -size +2048M > /tmp/tempfile
1] is there an option to specify the size in Gb
2] the output lists files with size such as:
1152157
(doing ls -l so I guess it is in bytes) So I am missing something here because this file has a size below 2 Gb.
Any hints??
thx.
aju_kup
December 20, 2006, 3:39am
2
ls -l | awk '{ s= $5/1073741824; if(s >= 2){print $0} }'
melanie_pfefer:
find /base/directory -size +2048M > /tmp/tempfile
1] is there an option to specify the size in Gb
2] the output lists files with size such as:
1152157
(doing ls -l so I guess it is in bytes) So I am missing something here because this file has a size below 2 Gb.
Any hints??
thx.
please see the man page of your find command and see if there is -size n[cwbkMG] option.
My version of find can specify -size in Gb, as stated in my man page.