Skip to content

Instantly share code, notes, and snippets.

@toshihirock
Created June 1, 2015 03:16
Show Gist options
  • Save toshihirock/f621a4dd5d458026a292 to your computer and use it in GitHub Desktop.
Save toshihirock/f621a4dd5d458026a292 to your computer and use it in GitHub Desktop.
#!/bin/bash
DIR="hoge-dir"
cd $DIR
files=`ls`
for file in ${files[@]}; do
echo $file
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment