Created
April 1, 2015 02:33
-
-
Save jcanfield/bf91afc2098609c83c46 to your computer and use it in GitHub Desktop.
Linux command line script to remove recursively (Link with `sudo ln -sv $HOME/.bin/rmr.sh /usr/local/sbin`)
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 | |
# USAGE: rmr *.ra* | |
# SYNOPSIS: Use this script to remove file types recursively. You can link it via `sudo ln -sv $HOME/.bin/rmr.sh /usr/local/sbin` | |
echo "--> Removing $1 recursively from $PWD" | |
find . -name "$1" -print0 | xargs -0 rm -rvf | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment