Search Results

Search: Posts Made By: aYankeeFan
7,960
Posted By aYankeeFan
Thanks for trying . But I dont know why I am not...
Thanks for trying . But I dont know why I am not getting the same result as you are .
My system info is :
uname -a
SunOS qa-smart-mgts 5.8 Generic_117350-04 sun4u sparc SUNW,Ultra-80.

I run...
7,960
Posted By aYankeeFan
Hi, I was trying this script today . If I had...
Hi,
I was trying this script today . If I had to add another column and add 24 instead of 1 on that column and add new row after that , how can I do it .
For example if the input line is :
abc...
28,602
Posted By aYankeeFan
Thanks Bhargav. That works . So I guess if we...
Thanks Bhargav. That works . So I guess if we have to get lets say x number of lines after the match , we'll just have to print it x number of times .
7,960
Posted By aYankeeFan
Actually I got it . I had to use nawk . Thanks...
Actually I got it . I had to use nawk . Thanks again for response . I appreciate it .
7,960
Posted By aYankeeFan
Thanks Zazzybob . I appreciate your response . I...
Thanks Zazzybob . I appreciate your response . I tried your script but I am getting this error .

abc xyz lmn 89 lm nk o p
awk: can't set $0
record number 1

Do you know what could cause this ?
28,602
Posted By aYankeeFan
Is there anyway I can change this command and try...
Is there anyway I can change this command and try to get , lets say 3 lines after the line which matches the pattern .
I am trying

sed '/war of worlds/{n ; 3p }' file1 .

But it doesnt work ....
7,960
Posted By aYankeeFan
Changing the column for a row in a text file and adding another row
Hi,
I want to write a shell script which increments a particular column in a row from a text file and then adds another row below the current row with the incremented value .
For Eg .
if the...
Showing results 1 to 7 of 7

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