Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! got_nothing's Avatar
    Join Date
    Nov 2006

    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:


    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?

  2. #2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts