How to get the shortest string in a text file with shell

Posted by SpawnST on Super User See other posts from Super User or by SpawnST
Published on 2010-04-29T01:02:27Z Indexed on 2010/04/29 1:07 UTC
Read the original article Hit count: 513

Filed under:
|
|

Assume I have a text file as below

abcd
aaaaaaa
gfgk
hahahahahahhahh
gf

Then gf would be returned.Any good ideas?Thanks.

© Super User or respective owner

Related posts about linux

Related posts about shell