Hi Julio,

Using grep is a nice hack, and unix-ey in spirit, but in this case, find
already supports what you want directly

If you're looking for files between 4000 and 6000 bytes long in directory
<dir>, you'd use

        find dir -size +4000c -and -size -6000c -print

('c' means the size is in characters, or bytes)

for size in kilobytes, use 'k' instaed of 'c'.

you might also want to use '-ls' instead of '-print' to see the size of the
files directly.

        Cheers,

                Rony

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Julio Rodriguez
Sent: Friday, November 02, 2001 3:04 PM
To: Lista de Correo (Expert)
Subject: [expert] Find


Hi everyone...

Im trying to list only the files that that have a size between 4000 and
6000...

 I have no idea of how to do it!..

I read the find man and only see something like this:

find -size +4000
or
find -size -6000

How do I connect that two commands to search files between that sizes?

txs...

Julio Rodríguez
[EMAIL PROTECTED]
Cel: 58 412 70 10 580
Charter Communications International Venezuela
Tel: 58-212-576.60.80




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to