#!/bin/bash ## path to input file input="lists.txt" ## Let us read a file line-by-line using while loop ## while IFS= read -r line do printf 'Working on %s file...\n' "$line" done < "$input"
#!/bin/bash ## path to input file input="lists.txt" ## Let us read a file line-by-line using while loop ## while IFS= read -r line do printf 'Working on %s file...\n' "$line" done < "$input"