INPUT, SORT with Alpha numaric characters
Hi all,
I am confused and stucked. Actually i am new in this scripting stuff. I want to give complete txt file as a input to a variable and then sort the data in the file according to the alpha numeric characters, as my text file contains ! and !! and !!! indicating Minor, Major and Critical repectively. Each alpha numeric represent new entry. I am trying to do but all in vain, help needed plz, codes which i am trying are as follows, #!/bin/bash OF=`cat /home/fadain/our\ alkatel\ alarm.txt` echo $OF but the out put is not the required one, i was trying to get the contents ( i Mean the acctuall text that file contains as the variable input) and then display it but it aint, second part deals with the sort command i hope, plz help me, Thanks in Advance |
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
I've closed the original because the 9 minutes younger dupe is in the more sensible place - Programming http://www.linuxquestions.org/questi...d.php?t=618909 Re-read the rules and adhere to them, makes life more pleasant for all of us. |
All times are GMT -5. The time now is 04:09 AM. |