LINUX How to get all file in folder with shell script

$search_dir=HOME 
for entry in "$search_dir"/*
do
  echo "$entry"
done
Or get all file in current folder
for i in `ls -a *.*`   
do   
echo "$i"   
done   

Comments

Popular posts from this blog

Java : Variables Declaring

SQL Self JOIN