c - Sort words and then the sentence including digits and characters in Shell scripting or perl scripting -
I have a string I have to solve in such a way that, before each word has to be resolved, it is 46 and then these words should be resolved with other words. Then the result should be similar to the following, Can you please tell me how to do this If there is no least good algorithm in scripting, bash or pearl, solve this problem The algorithm is simple to do, as you said in the description of your question, make the sort characters in each word first, then sort these sorted words again. Like this: "heya64 is21 a good89 day91"
"12is 1 9ady 46aehy 89dgoo a hist"
$ echo heya64 this is21 a good 9 9 days 1 9 | () "126 9 46 46 Ahahi 89dgoo a hist
Comments
Post a Comment