Skip to content

Instantly share code, notes, and snippets.

@akarzim
Created September 27, 2019 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akarzim/e77af454042a447812f7fd765fd32007 to your computer and use it in GitHub Desktop.
Save akarzim/e77af454042a447812f7fd765fd32007 to your computer and use it in GitHub Desktop.
List and remove *.orig files from the current directory
#
# 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