Command to list Files less than or equal to 2k size

Hi,
*.xml files stored on date wise folders. I need to extract *.xml files from all the folders. File size is lessthan or equal to 2K. Please let me know command or some shell program to due this job on linux m/c

This is urgent,
Thanks in advance

  • Bache Gowda

check out the find command. See man find and search the boards using the keyword 'find' for examples of its use.

ls -l | awk '{ if ($5 < 2000) { print $0 }}'

Regards
JK

Thanks to all,
I got the answer
$find ./ -name *.xml -size -4 for less thank 2k and 4 for exactly for 2k

  • Bache Gowda