Saturday, 29 September 2012

Script to remove a particular file from all folders

/home/user/public_html]# find . -iname test.php -exec rm -f {} \;
which will remove all test.php files from all folders under public_html directory

No comments:

Post a Comment