FunctionRacerProblemsRace

The Longest Line

MediumBasha shell script

Print the longest line of lines.txt: the line with the most characters, spaces included.

Example 1

lines.txt
tea
a long line of words
milk and eggs
prints
a long line of words

Constraints

Race itor take your time

Write it in your browser, against the clock. The model script, with a note on each command it uses, comes after.

More Bash problems