Skip to content

Instantly share code, notes, and snippets.

@unhammer
Created September 22, 2011 11:44
Show Gist options
  • Save unhammer/1234599 to your computer and use it in GitHub Desktop.
Save unhammer/1234599 to your computer and use it in GitHub Desktop.
8 character rhyming words, only first letter change
#!/bin/bash
awk 'length($0)==8' /usr/share/dict/words|rev|sort -u|rev >/tmp/rsorted
tail -n+1 /tmp/rsorted >/tmp/1
tail -n+2 /tmp/rsorted >/tmp/2
paste -d: /tmp/1 /tmp/2|grep '^.\(.*\):.\1$'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment