I want to write a script which will accept a line of text and should tell me if any of the words are made up of the same letters. Here is an example:
How can you listen if you are not silent?
Here 'listen' and 'silent' are made up of exactly same letters with same frequency.
Any help?
Presented without commentary:
This will list the frequency of each space-delimited set of characters in the sentence:
Output:
It's not very elegant and probably you should be using something else than shell.