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 \w to append to file
Name: nmf Date: May 6, 2006 at 16:55:42 Pacific OS: mac osx CPU/Ram: emac Product: apple
Comment:
in a sed file I'd like to append the line to another file if it matches and substitutes
s/abc/cat/w filename
However I don't want it to create a new file for the sed, but append to an existing file
Summary: First of all, I would like to thank the folks posting here.. I have learned a lot. Now to my next issue - I am trying to create a script that will prompt a user with 7 questions. The answer needs to ...
Summary: The echo or print command is typical used for that, and as kendel states, redirect the output of the command to your file. The first command below will overwrite any existing file and start a new fil...
Summary: First, your vi command to save and quit vi is incorrect: It's not :wq! it is just :wq An alternate way of save and quit in vi is :x Another method to create a file is this way: cat > myfile.txt add li...