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
|