Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


Closed Thread
  Search this Thread
Old 02-05-2008, 02:30 PM   #1
LQ Newbie
Registered: Feb 2008
Posts: 13

Rep: Reputation: 0
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,

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
Old 02-05-2008, 03:57 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912
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

Re-read the rules and adhere to them, makes life more pleasant
for all of us.

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Input chinese characters wizzkid8 Linux - Software 5 09-19-2007 10:21 PM
Regular expression to match 4 or more alpha characters sixerjman Programming 15 11-27-2006 12:03 AM
non alpha characters frankwc Linux - Security 1 06-24-2004 05:40 PM
Can only input certain characters? mooresd3 Linux - General 2 02-15-2004 12:37 AM
How To Input Characters In A List bprasanth_20 Programming 10 10-30-2003 12:55 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration