How can I do an action to all files in a specific folder?
Do I use ls and a loop or something else? Does ls take folder location?
How can I do an action to all files in a specific folder?
Do I use ls and a loop or something else? Does ls take folder location?
Answering my own question.
for file in folder/*;
do
echo $file
done
Thanks locoroco for sharing the solution here, keep it up, keep learning and keep sharing knowledge here.
Thanks,
R. Singh