Skip to content

Instantly share code, notes, and snippets.

@lukesh
Created September 15, 2009 15:29
Show Gist options
  • Save lukesh/187382 to your computer and use it in GitHub Desktop.
Save lukesh/187382 to your computer and use it in GitHub Desktop.
#!/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