script for deleting .dat files which > 5 mb from a directory and its subdirectory
hi,
can you tell me how to write a script which will remove all the .DAT files which are greater than 5 MB form a directory and its sub-directory ? Thanks in advance............. regards anindya bhattacharjee |
Umm something like
Code:
find /start/directory -name *.DAT -type f -size +5M -print | xargs /bin/rm -f Code:
man find |
deleting problem solved
hi,
thanks for your reply . after doing some changes in your command , I am now able to delete those files . thanks®ards anindya bhattacharjee |
All times are GMT -5. The time now is 04:53 AM. |