Search Results

Search: Posts Made By: muxman
74,294
Posted By muxman
That deletes the match. What I'm after is to...
That deletes the match. What I'm after is to negate it. Instead of replacing the match, replace EVERYTHING ELSE and leave the match alone.
74,294
Posted By muxman
how do I negate a sed match
I have a text file that has links in it.

I can write a match for sed to replace the link with anything.

For example:

http://www.google.com
becomes
XxX


But what I'm after is not to...
9,243
Posted By muxman
I always just redirect the output of sed to a...
I always just redirect the output of sed to a temp file and then copy or move the temp file back over original I changed.
16,481
Posted By muxman
quote from man page for rm
quote from man page for rm
3,321
Posted By muxman
Try this: sed s/'syslogd...
Try this:

sed s/'syslogd "$src_running"'/'syslogd "$src_running" -N'/ rc.tcpip

I tried this on your example data and it changed line:

start /usr/sbin/syslogd "$src_running"

to

start...
Showing results 1 to 5 of 5

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