Skip to content

Instantly share code, notes, and snippets.

@hushin
Created September 29, 2012 12:37
Show Gist options
  • Save hushin/3803882 to your computer and use it in GitHub Desktop.
Save hushin/3803882 to your computer and use it in GitHub Desktop.
同名のファイルを違う場所にコピーしたいときに使うコマンド
ls | sed -e "s|\([^ .]*\)*\.jpg|../hoge/\1.NEF|g" | xargs -J % cp % ../fuga
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment