Search Results

Search: Posts Made By: Kulasekar
3,859
Posted By Kulasekar
awk working inside specific pattern ranges
Hi,

I have a text file, which I am trying to parse.

File contents:
BEG
Id Job1
Id Stage1
1
EN
Id Job2
Id Stage2
BEG
Id2 Job3
Id Stage4
2
EN

I have to process...
1,062
Posted By Kulasekar
awk Strange behaviour in AIX
Can someone please explain the strange behaviour.. I was just trying a few things to learn awk..

in the below code when I start the braces in the same line, the output is as expected, when I...
3,594
Posted By Kulasekar
Invoking system(cmd) inside awk command
Hi,

I was searching for a way to grep 2 lines before and after a certain keyword, and I came across the following code..

awk "\$0 ~ /ORA-/ {
cmd=\"awk 'NR>=\" NR-2 \" && NR<=\" NR+2 \"'...
3,473
Posted By Kulasekar
Hi Don, Thanks for your sample script. So...
Hi Don,

Thanks for your sample script. So if I understand it right, caseless comparision cannot be done just by any combinations of [Yy] right?

Only way to do using test command or single...
3,473
Posted By Kulasekar
Test command non case specific string comparision
Hi,

I want to do caseless string comparision using test command

for eg: Ind_f="y"

test "$Ind_f" == "y|Y"

i tried [yY], *[yY]* [y|Y], nothing worked.

any thoughts on how to do case...
Showing results 1 to 5 of 5

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