Read lines in a text file with bash
In bash it’s very easy to read a text file line by line and do something to each line. I do this in cygwin a lot to parse logs and other large files. Your input file needs to have unix-style line endings or bash will get very confused. This trips me up a lot when […]