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
$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
Post a Comment