file_list=`ls ${my_dir}` for file_i in ${file_list}; do echo $file_i done