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

LINUX Move and copy files using SSH

PHP Predefined Variables

Java : Variables Declaring