files greater than | find . -type f -size +4G |
files less than | find . -type f -size -4G |
less than 100M, but greater than 80M | find . -type f -size -100M -size +80M |
".." with -exec option to run on each item found | find . -type f -size +100M -size -80M -exec ls -l {} + |
-size n[cwbkMG] File uses n units of space, rounding up. The following suffixes can be used: `b' for 512-byte blocks (this is the default if no suffix is used) `c' for bytes `w' for two-byte words `k' for Kibibytes (KiB, units of 1024 bytes) `M' for Mebibytes (MiB, units of 1024 * 1024 = 1048576 bytes) `G' for Gibibytes (GiB, units of 1024 * 1024 * 1024 = 1073741824 bytes)
- Log in to post comments