Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
SED - change a word by a new line
Name: fmr1909 Date: April 4, 2005 at 14:13:46 Pacific OS: SuSE 9.1 CPU/Ram: p III 900
Comment:
Using sed, can I change a word with a new line, spliting the original line in two?
Example of original line:
This is a line.
I want to take the word "is" and change it by a EOF, and teh result will be:
Summary: I'm a Unix newb here, I have an assignment due soon and I have to know how to go through a file line by line to get it done. Now I think I have most of it done, I cat the file out, then pipe it to cu...
Summary: I can't get the syntax to render correctly in the browser.... So just go to this URL and search on word boundaries. http://www.ptug.org/sed/sedfaq.htm You will want to enclose the work hi inside a bac...
Summary: g++ 3.2 has changed to conform with the new C++ standard. The changes are: 1) leave off the ".h" for system includes 2) you must specify the namespace for each each function (ex. ios::cout) or set a g...