Created
August 23, 2012 10:28
-
-
Save yurfuwa-chan/3435306 to your computer and use it in GitHub Desktop.
findで探してパイブwhile回す
This file contains hidden or 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
//findで探してパイブwhile回す | |
find ... | while read f; do | |
echo $f | |
echo $(basename $f) | |
done |
This file contains hidden or 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
//パターンで ファイル名"差し込み""拡張子" な置換 | |
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