LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Closed Thread
  Search this Thread
Old 02-05-2008, 03:30 PM   #1
nabmufti
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,


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

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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.
 
  


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 11:21 PM
Regular expression to match 4 or more alpha characters sixerjman Programming 15 11-27-2006 01:03 AM
non alpha characters frankwc Linux - Security 1 06-24-2004 06:40 PM
Can only input certain characters? mooresd3 Linux - General 2 02-15-2004 01:37 AM
How To Input Characters In A List bprasanth_20 Programming 10 10-30-2003 01:55 AM


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

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