Action on all files in a folder

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

1 Like

Thanks locoroco for sharing the solution here, keep it up, keep learning and keep sharing knowledge here.

Thanks,
R. Singh