find with file size and show the size

Hi All...

is the below command be modified in sucha way that i can get the file size along with the name and path of the file

the below command only gives me the file location which are more than 100000k...but I want the exact size of the file also..

find / -name "*.*" -size +100000k

cheers!!!

you can pipe the output through awk.....

find ./ -name "*.*" -size +1000k -exec ls -l '{}' \; | awk '{ print $9 " " $5 }'

This works with ksh: -

find / -name \* -size +100000k 2>/dev/null | xargs -i ls -l {} | cut -d" " -f5,8

Piping through the cut seemed to give a more reliable result than -exec: -

TX5XN:/home/brad>find / -name \* -size +100000k 2>/dev/null | xargs -i ls -l {} | cut -d" " -f5,8
268435456 /sys/devices/pci0000:00/0000:00:02.0/resource2
268435456 /sys/devices/pci0000:00/0000:00:02.0/resource2_wc
926937088 /proc/kcore
244147044 /home/brad/Pictures/mvi_0748.mov

With GNU find, you can do :

find / -name \* -size +100000k -printf '%p\t%s\n

%p -> File name
%s -> File size

Jean-Pierre.