kingpin200004
asked on
Remove all jpegs les than 1k from a folder
Hi i am new to linux so sorry for the no braner question but how do i remove all jpg files less than 1k from a spesific folder?
its to go in a cron script
thanks for you help
its to go in a cron script
thanks for you help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
find /dir -name '*.jpg' -size -1k -printf "'%p'\n" | xargs rm -f