How to ls -l each .txt file in bash/shell? ... Here is a better way to loop over files as it handles spaces ...
stackoverflow.com