#!/bin/bash readarray -t files < /var/www/html/storage/focode/file_list_temp.txt for file in "${files[@]}" do ls -l "$file" done