Search Results

Search: Posts Made By: tryintolearn
2,278
Posted By durden_tyler
Perl solution - $ $ $ perl -lne...
Perl solution -



$
$
$ perl -lne '$x=$_ if /^[^i]+$/i && length($_)>length($x);
END {print $x}' /usr/share/dict/words
regeneratoryregeneratress
$
$


tyler_durden
2,278
Posted By danmero
awk...
awk '{for(i=0;++i<=NF;){if($i!~"i")a[$i]=length($i)}}END{for(i in a){if(a[i]==max){b[i]=i};if(a[i]>max){max=a[i];delete b;b[i]=i}};for(i in b){print i}}' file
11PM here , maybe somebody else can...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 02:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy