Re: Possible bug with -size and a one

2025-06-06 Thread Andreas Metzler
On 2025-06-07 Scott Baker wrote: > I'm trying to find all the files in /tmp/ that less than 1MB. > mkdir /tmp/scott > cd /tmp/scott > echo "Hello world" > test.txt > find . -size -1M -type f    # doesn't work > find . -size -2M -type f    # works > find . -size -1024k -type f # works > From what

Possible bug with -size and a one

2025-06-06 Thread Scott Baker
I'm trying to find all the files in /tmp/ that less than 1MB. mkdir /tmp/scott cd /tmp/scott echo "Hello world" > test.txt find . -size -1M -type f    # doesn't work find . -size -2M -type f    # works find . -size -1024k -type f # works From what I can tell doing -size -1[kMG] doesn't output an