Skip to content

Instantly share code, notes, and snippets.

@masuidrive
Created July 5, 2018 01:19
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 masuidrive/f6391a1e6ba872c750d7909e8afa380b to your computer and use it in GitHub Desktop.
Save masuidrive/f6391a1e6ba872c750d7909e8afa380b to your computer and use it in GitHub Desktop.
bakファイルだけを.Trashへ移動する
find . -name '*.bak' -type f -print0 | xargs -0 -n1 bash -c 'echo "mv \"$0\" ~/\".Trash/`basename \"$0\"`"\"' | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment