Search Results

Search: Posts Made By: anilvk
2,188
Posted By anilvk
awesome! :b: Thanks Birei
awesome! :b:
Thanks Birei
2,188
Posted By anilvk
sed replace characters in next line with input from a file
Hi,
I have a set of strings in filea.
I want to search string xyz in fileb and replace next line in file b with the content from filea.


#cat filea
abc
def
ghi

#cat fileb
asdkjdslka...
5,202
Posted By anilvk
Thanks scott for your quick reply. In my case...
Thanks scott for your quick reply.
In my case p1 starts at char 5 in line 4 after HEADER. p1 is 7 charecter long.

And each of the fileA and fileB will have same number of such occurances.
I...
5,202
Posted By anilvk
search pattern and replace x-y characters in nth line after every match
Hi,

I am looking for any script which can do the following.
have to read a pattern from fileA and copy it to fileB.


fileA:
...
...
Header
...
...
..p1
...
...

fileB:
.......
Showing results 1 to 4 of 4

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