find file by size more MIN and less MAX
Asked Answered
H

1

21

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

Homologue answered 4/1, 2015 at 21:33 Comment(0)
A
33

Assuming you want file sizes between 1000 and 1100 bytes:

find . -type f -size +1000c -a -size -1100c
Agreed answered 4/1, 2015 at 21:37 Comment(1)
to show these files use find . -size +1000c -exec ls -lah $1 {} \;Russon

© 2022 - 2024 — McMap. All rights reserved.