Find file size larger than MIN and less than MAX

how can i use linux search command for search files that are greater than MIN and less than MAX

I tried using the following command:

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

but it does not work

+6
source share
1 answer

Assuming you want a file size of 1000 to 1100 bytes:

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

Source: https://habr.com/ru/post/980503/


All Articles