How do I iterate over each line in a file with Bash? July 28, 2023 by Tarik I found myself in the same problem, this works for me: cat file.cut | cut -d$'\n' -f1 Or: cut -d$'\n' -f1 file.cut