11
rated 0 times
[
11]
[
0]
/ answers: 1 / hits: 19444
/ 2 Years ago, tue, march 1, 2022, 8:38:55
I'm interested to find out the line number of the longest line from a file.
For example, if I have a file with the following content:
lalala
tatatata
abracadabra
mu mu mu
how can I write a bash script that will give me an output something like this: 3 -> abracadabra
?
More From » command-line