Search Results

Search: Posts Made By: dimocn
4,188
Posted By dimocn
Thank you all for your replies; much appreciated.
Thank you all for your replies; much appreciated.
4,188
Posted By dimocn
Thank you all so very much!
Thank you all so very much!
4,188
Posted By dimocn
How to insert file contents after nth occurrence of a string using sed?
Hi,
I would like to know how, using sed, be able to insert contents of file2 in file1 after say the second occurrence of a given string? e.g.

> cat file1
banana
apple
orange
apple
banana...
Showing results 1 to 3 of 3

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