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.
Replace entire line
Name: pratheep Date: November 12, 2008 at 03:38:01 Pacific OS: Xp CPU/Ram: 2 gb Product: Microsoft
Comment:
I need to replace an entire line which has a keyword export. before export there may be # or anything...
Summary: my problem is i want to replace a line in a file e.g i want to replace the line DBUID= (some name) with DBUID=$user variable file name is sample.ksh DBUID=aruns010 please help me in solving this pro...
Summary: This will replace every line that has "etc etc etc" with "cte cte cte" in files a b & c: cd /dir/with/files/ for i in `ls a b c` ; do sed 's/etc etc etc/cte cte cte/g' $i > $i.$$ mv $i.$$ $i done -jim...
Summary: I need some help on a unix script I am trying to write, or at least the logic behind it. The task im trying to achieve is to search a file for using a key word, once it finds this word, it should repl...