replace half line in file by another half line of file
hii...
in my prog i want to replace half of the line by another file's half line. in shell script. example: file1 Code:
.... file2 Code:
..... Code:
.... |
you can use the standard find/replace in any GUI or text editor. I personally prefer vi (or vim in some cases) its a rather simple syntax:
Quote:
Code:
:s/take a mile/measure it/g |
This sounds a lot like a homework question, and per the LQ rules we won't give you specific answers. But we can help guide you to a solution.
So to start with, what have you attempted so far, and where exactly are you having trouble? |
^This, and please define "half of a line". In your example, "this" is not half of the line.
|
All times are GMT -5. The time now is 02:23 AM. |