Created
September 27, 2019 09:01
-
-
Save akarzim/e77af454042a447812f7fd765fd32007 to your computer and use it in GitHub Desktop.
List and remove *.orig files from the current directory
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
# | |
# Aliases | |
# | |
# List all *.orig files in the current directory | |
if (( $+commands[ls] )); then | |
alias lso='ls -al **/*.orig' | |
fi | |
# Remove all *.orig files from the current directory | |
if (( $+commands[rm] )); then | |
alias rmo='rm **/*.orig' | |
alias rmO='rm -rf **/*.orig' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment