(shell)show all the files in one path

# cat  aaa-ls.sh
yourfilenames=`ls ./*.jpg`
for eachfile in $yourfilenames
do
   echo $eachfile
done

  

原文地址:https://www.cnblogs.com/morganh/p/8336455.html