Advertisement
Guido_Fe

Script to find longest word writable in a calculator

Oct 8th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.13 KB | None | 0 0
  1. echo `cat words.txt | grep -E -i -v [acfkmpqrtuvwxy] | awk '{ print length($0) " " $0; }' | sort -r -n | cut -d ' ' -f 2- | head -n 1`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement