how to remove all zero byte files in a particular directory and also files that are morew than 1GB. pLEASE let me know
# zero-length
find /path/to/directory -size 0 -type f -exec rm -f {} \;
# > 1GB
find /path/to/somwhere -size +1953126 -type f -exec rm -f {} \;
or as a one shot:
find /path/to/directory -type f \( -size 0 -o -size +1953126 \) -exec rm -f {} \;
a faster way
find /path -type f \( -size 0 -o -size +1953126 \) -print0 | xargs -0 rm