Created
September 15, 2009 15:29
-
-
Save lukesh/187382 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$#" -lt 1 ] | |
then | |
echo "Usage: $0 <parameter>" | |
echo "where parameter is pattern of file to be recursively deleted" | |
exit 1 | |
fi | |
echo "Recursively removing for pattern: '$1'" | |
find . -iname "$1" -print0 | xargs -0 rm -rf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment