find file by size more MIN and less MAX

Ivan Ivanovich picture Ivan Ivanovich · Jan 4, 2015 · Viewed 10.9k times · Source

how i can use linux find command for search files that more MIN and less MAX

I tried to use the following command:

find . -type f -a -size +1000 -a -size -1100

but it does not work

Answer

nwk picture nwk · Jan 4, 2015

Assuming you want file sizes between 1000 and 1100 bytes:

find . -type f -size +1000c -a -size -1100c