Search Results

Search: Posts Made By: ragz_82
28,349
Posted By ragz_82
SED With Regex to extract Email Address
Hi Folks,
In my program, I have a variable which consists of multiple lines. i need to use each line as an input. My intention is to extract the email address of the user in each line and use it to...
3,286
Posted By ragz_82
Did you mean to try as following? cat...
Did you mean to try as following?
cat file.input.XYZ.dat | awk 'NR>x && NR<y' x=$LOWER_LIMIT y=$UPPER_LIMIT result.txt

This only writes the first line in the input file to the output file with...
3,286
Posted By ragz_82
nawk - Unable to use 2 variables for NR range
Hi,
I need to break an input file into multiple output files. The number of output files is decided by a maximum record count allowed for each file.

Hence I am using the nawk command to...
25,475
Posted By ragz_82
Command to remove First and Last line from a File
I have a file from which the Header and the Trailer lines need to be removed. They are confirmed to be the first and the last lines in the file.

I have tried a few commands, but not successful...
48,277
Posted By ragz_82
Thank you Amit, this helped. The possible...
Thank you Amit, this helped.

The possible inputs are following:
HJAN BALANCE 20090616
HJAN HOLDING 20090616
HJAN CASHLEDGER20090616

Hence it worked for the first two. Hence I feel in my case...
48,277
Posted By ragz_82
I got the reason after I posted the previous one....
I got the reason after I posted the previous one. The separators between the three values is a TAB and not multiple spaces. I realized when I pasted the output here. There is only one space now,...
48,277
Posted By ragz_82
Amit, This option worked. But the results are...
Amit,
This option worked. But the results are not as expected and also varies for different inputs. Kindly take a look:

Header Line: HJAN BALANCE 20090616
Header Date: 0616
Header Line:...
48,277
Posted By ragz_82
Following is the response: Header Line: HJAN...
Following is the response:

Header Line: HJAN BALANCE 20090616
expr: syntax error

Does it have to do with the double quotes?
48,277
Posted By ragz_82
Thank you Rakesh. I tried this. Below is the...
Thank you Rakesh.
I tried this. Below is the response:

Header Line: HJAN BALANCE 20090616
cut: cannot open HJAN
cut: cannot open BALANCE
cut: cannot open 20090616
Launch_LKW-Gen.ksh[136]:...
48,277
Posted By ragz_82
Cut Command value assign to variable
Hi,
I am new to UNIX Scripting. I have been trying to use the CUT command to retrieve part of the header from a file and assign it to a variable. I have tried searching a lot, but I am still...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 09:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy