Created
April 2, 2012 01:40
-
-
Save onjiro/2279945 to your computer and use it in GitHub Desktop.
findしたファイルでbasenameとか使ってゴニョゴニョしたい
This file contains 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
for i in `find . -name '*.sh'`;do echo $i $(basename $i);done | |
# 以下の方法ではうまく動作しなかったのになぁ・・・ | |
# find . -name '*.sh' -exec echo {} $(basename {}) \; | |
# find . -name '*.sh' -exec echo {} `basename {}` \; | |
# find . -name '*.sh' | xargs -n 1 -i echo {} $(basename {}) | |
# find . -name '*.sh' | xargs -n 1 -i echo {} `basename {}` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment