Results 1 to 2 of 2
Hi there, I am trying to attempt some of the tutorial question for my school work and currently having some problem on doing an unscramble letters using grep.....
Here is ...
- 03-30-2007 #1
Unscramble letters using grep...
Hi there, I am trying to attempt some of the tutorial question for my school work and currently having some problem on doing an unscramble letters using grep.....
Here is the question:
"Using grep and /usr/share/dict/words to unscramble the words: ailnosuxy"
This is how I got for so far:
grep '^[ailnosuxy]\{9\}$' /usr/share/dict/words
The following command will going to display all the letters that in the "ailnosuxy" exactly in 9 characters in each line. However, some of the letters are repeated in the same line:
e.g:
unsinuous
unusually << "u", "l" repeated 2,3 times and etc..
Can anymore please point out or give out any hints on how to make the each of the letters only appear once in a line?
- 03-30-2007 #2
Sorry, no homework questions
http://www.linuxforums.org/forum/lin...ums-rules.htmlBrilliant Mediocrity - Making Failure Look Good


