Skip to content

Instantly share code, notes, and snippets.

@yurfuwa-chan
Created August 23, 2012 10:28
Show Gist options
  • Save yurfuwa-chan/3435306 to your computer and use it in GitHub Desktop.
Save yurfuwa-chan/3435306 to your computer and use it in GitHub Desktop.
findで探してパイブwhile回す
//findで探してパイブwhile回す
find ... | while read f; do
echo $f
echo $(basename $f)
done
//パターンで ファイル名"差し込み""拡張子" な置換
find neko* | while read f; do
mv $f ${f%.*}"@2x."${f##*.}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment