hi all
i need help
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,
if i removed these >> operators from the start of file i again got the same output
ALAIL ; :command not found
even this file doesnt have executeable permission but still i am getting this message
i am so confused as i am still at my first step since 3 days
please help me, why it doesnt take the whole file as text input rather the first word and ignorin the rest of file
as i told befor ! & !!! showing minor & critical alarms.its a log file of alkatel switch & i have to extract
!!! , !! , !
with relevant
date & time e.g !!! */07-12-17/15 H 46/
event i.e. EVENT=MAL
& texal i.e. /TEXAL=SINGLE JUNCT/UT OOS/COMPL.INF
i collected stuff about reg exp from this site to take yhe substring but couldnt find a way still
let me make it very clear that i need this script in bash onlynot perl and any other language
i tried another script to extract entry components from the file asbut the out put became the infinite loop of the first line as
I don't think read works this way.
Try:
It appears from your error that you are inadvertantly executing the lines of the file rather than just reading them. Post your full script (use CODE and /CODE tags carefully to make it easier to read) and we'll take a look.
help needed to extract string components from a file by BASH script
actually i want you to have a complete understanding of my problem cozi am beginer & i am still stucked
i have no problem with using space i.e
or
:
these codes display file contents which is fine but the main problem is to extract string components from file which i couldnt
plz read the first thread i posted in very much detail to help me
i realy need this help
waiting for your reply very soon
Last edited by nabmufti; 02-08-2008 at 09:59 AM..
Reason: to make code clear
hello guys!! need 1 favour from u all..
Can u jst tell me the answers for these ques??
1. ls - l _____ : command to return all files that end with single digit and those with TXT extension
2. ls -l report* _______ : command to return all files that start with the word RPT except those with LOG... (1 Reply)
I have 3 variables
$file =abc_2011_11_01.txt (current day file)
$back = Yes
$forward = No
I need to search for 3 days back files / 3 days forward files if my current file is not present
logic is,
I need to download the current day file.
If it is missing, i need to look out for... (1 Reply)
hello all,
I have a script, used to search for the strings from the set of 5 similar pattern file from the log dir. So here it goes . The input parameter is a part of the file name. When during the script execution, the script should parse the input parameter to original file's with the same... (1 Reply)
I am new to shell scripting
I am getting file sample.txt from mainframes to my unix machine Mon-Fri every 15 minutes from 9:00AM to 6:00PM.
I need to Compare timestamp of sample.txt against system time via a Unix script kicked off by an Autosys job
My Task is to write a shell script to monitor... (3 Replies)
You have a file called /opt/test/input.txt with the following information:
man_aa_bld_100.410.040_CMD 08/14/2008 23:29:21 08/14/2008 23:31:10 SU 5339491/1
man_aa_bld_100.410.050_CMD 08/14/2008 23:29:21 08/14/2008 23:31:11 SU 5339491/1
man_aa_bld_100.410.060_CMD 08/14/2008 ... (3 Replies)
Hi
I have knowledge is a little about Solaris 10.
I have problem route
Question
I have two lan interfaces
nge0 >> 192.168.1.1 / 24 and link up Client1 >> 192.168.1.10 not out internet (GW 192.168.1.254)
nge1 >> 192.168.50.220 /24 and link up Client50 >> 192.168.50.1 can... (2 Replies)
Hi ,
i amtrying to execute a file called bcs_maint which is the final executable for our project.
Normally on some other servers ican execute it by just typing bcs_maint.
yesterday i got a new worksattion for me and when i do the same it says
/sbin/sh: bcs_maint : not found.
What... (5 Replies)
Hi to All,
I m a regular visitor of this site but this one is my first thread .
Although I ve tried but I cant find the solution .:confused:
I ve number of files having extension .file., which having some define statement in it.The files consits as follows
Ex:-
abc.file
`define ADCONV0 ... (3 Replies)
Right deleted Linux partition usig windows
then went to format c:\ but had to exit window now pc ONLY boots into GNU Grub.
Does anyone know how to format the hard drive now????? (3 Replies)
Hi Frends,
I am need of a small shell script. Kindly any body help me by giving me a small shell script to read first line in a file and extract date from the first line
and store it in a variable...
and after storing it in a variable the first and the last line of the file has to be deleted..... (2 Replies)