in reply to Re^6: One-liner only checking the first line of the input file
in thread One-liner only checking the first line of the input file
On the command line, make a backup of the file, then type vi input.txt, then inside of vi, type :set ff=unix, hit ENTER, then type :wq. It would be worth noting whether the file appears as you expect before you run the above commands.
That'll set line endings to \n (at least it should). Then run your original one-liner to see if that worked.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: One-liner only checking the first line of the input file
by TJCooper (Beadle) on Nov 11, 2015 at 15:28 UTC | |
by stevieb (Canon) on Nov 11, 2015 at 15:56 UTC | |
by 1nickt (Canon) on Nov 12, 2015 at 14:36 UTC | |
by stevieb (Canon) on Nov 12, 2015 at 16:50 UTC |