Created
September 11, 2012 08:41
-
-
Save batako/3696959 to your computer and use it in GitHub Desktop.
指定したディレクトリ内の全ファイル名を取得する
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
# 指定ディレクトリの最後の「/」は省略可能 | |
DIRECTORY_PATH="/Users/batako/Download/" | |
for FILE_PATH in `echo $DIRECTORY_PATH/ | sed -e "s/\/\//\//g"`* | |
do | |
echo ${FILE_PATH##*/} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment