Hi
I would really appreciate a hand with this.
I have created one program which will receive a list of words then output each word as its signature (the word sorted alphabetically and lower case applied) the original word will be printed out beside it, as follows:
acijkkps skipjack
I am using the /usr/dict/words file which seems to work fine
cat /usr/dict/words | prog1 | sort > result
Ok, now the problem is this... I want to create another program in which the output from the above program will be piped to it. I would then like to accumulate words with the same signature, and output the list if there are more than 1 anagram.
I hope this is easy enough to understand, cheers for any help
typeos
I would really appreciate a hand with this.
I have created one program which will receive a list of words then output each word as its signature (the word sorted alphabetically and lower case applied) the original word will be printed out beside it, as follows:
acijkkps skipjack
I am using the /usr/dict/words file which seems to work fine
cat /usr/dict/words | prog1 | sort > result
Ok, now the problem is this... I want to create another program in which the output from the above program will be piped to it. I would then like to accumulate words with the same signature, and output the list if there are more than 1 anagram.
I hope this is easy enough to understand, cheers for any help
typeos