Re: is there a "replace command" ?

2002-12-03 Thread Cliff Sarginson
On Tue, Dec 03, 2002 at 11:42:05AM +0100, Paul Everlund wrote: > On Tue, 3 Dec 2002, Roman Neuhauser wrote: > > > # [EMAIL PROTECTED] / 2002-12-03 11:13:39 +0100: > > > On Tue, 3 Dec 2002, Malik Blent wrote: > > > > But my expression has "/" that is there is a "/" in a expression > > > > What shal

Re: is there a "replace command" ?

2002-12-03 Thread Paul Everlund
On Tue, 3 Dec 2002, Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2002-12-03 11:13:39 +0100: > > On Tue, 3 Dec 2002, Malik Bülent wrote: > > > But my expression has "/" that is there is a "/" in a expression > > > What shall i do ? > > > my expression is "new: 11" I want to change "new: 11" wit

Re: is there a "replace command" ?

2002-12-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2002-12-03 11:13:39 +0100: > On Tue, 3 Dec 2002, Malik Bülent wrote: > > But my expression has "/" that is there is a "/" in a expression > > What shall i do ? > > my expression is "new: 11" I want to change "new: 11" with "new/11" > > > > thanks > > # echo "new: 11" | sed

Re: is there a "replace command" ?

2002-12-03 Thread Paul Everlund
On Tue, 3 Dec 2002, Malik Bülent wrote: > But my expression has "/" that is there is a "/" in a expression What shall > i do ? > my expression is "new: 11" I want to change "new: 11" with "new/11" > > thanks # echo "new: 11" | sed s/new\:\ 11/new\\/11/ Best regards, Paul To Unsubscribe: se

Re: is there a "replace command" ?

2002-12-02 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2002-12-02 16:53:01 +0100: > # [EMAIL PROTECTED] / 2002-12-02 16:36:21 +0100: > > On Mon, 2 Dec 2002, [iso-8859-9] Malik Bülent wrote: > > > > > On Freebsd4.x > > > I have a file. I want to change some expressions with new ones > > > For example a file > > > touch /var/qmail

Re: is there a "replace command" ?

2002-12-02 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2002-12-02 16:36:21 +0100: > On Mon, 2 Dec 2002, [iso-8859-9] Malik Bülent wrote: > > > On Freebsd4.x > > I have a file. I want to change some expressions with new ones > > For example a file > > touch /var/qmail/1 > > touch /var/qmail/2 > > touch /var/qmail/3 > > touch /

Re: is there a "replace command" ?

2002-12-02 Thread Paul Everlund
On Mon, 2 Dec 2002, [iso-8859-9] Malik Bülent wrote: > On Freebsd4.x > I have a file. I want to change some expressions with new ones > For example a file > touch /var/qmail/1 > touch /var/qmail/2 > touch /var/qmail/3 > touch /var/qmail/4 > touch /var/qmail/5 > touch /var/qmail/6 > I want to

Re: is there a "replace command" ?

2002-12-02 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2002-12-02 14:20:44 +0100: > Today Conrad Sabatier wrote: > > Recent versions of FreeBSD now have a version of 'sed' that can do these > > types of replacements "in place", i.e., without the need for a temporary > > file: > > > sed -i -e 's/^touch /rm /' infile > > No. I'm p

Re: is there a "replace command" ?

2002-12-02 Thread Andrew Prewett
Today Conrad Sabatier wrote: > > On 02-Dec-2002 Malik Bülent wrote: > > On Freebsd4.x > > I have a file. I want to change some expressions with new ones > > For example a file > > touch /var/qmail/1 > > touch /var/qmail/2 > > touch /var/qmail/3 > > touch /var/qmail/4 > > touch /var/qmail/5 >

Re: is there a "replace command" ?

2002-12-02 Thread Alan Day
sed -e 's/touch/rm/' FILENAME > OUTPUT_FILE or something like, perl -pi -e 's/touch/rm/;' FILENAME man 1 sed for a lot more detail - Original Message - From: "Malik Bülent" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December

Re: is there a "replace command" ?

2002-12-02 Thread Conrad Sabatier
On 02-Dec-2002 Malik Bülent wrote: > On Freebsd4.x > I have a file. I want to change some expressions with new ones > For example a file > touch /var/qmail/1 > touch /var/qmail/2 > touch /var/qmail/3 > touch /var/qmail/4 > touch /var/qmail/5 > touch /var/qmail/6 > I want to change "touch" wi

Re: is there a "replace command" ?

2002-12-02 Thread Andrew Prewett
Today Malik Bülent wrote: > On Freebsd4.x > I have a file. I want to change some expressions with new ones > For example a file > touch /var/qmail/1 > touch /var/qmail/2 > touch /var/qmail/3 > touch /var/qmail/4 > touch /var/qmail/5 > touch /var/qmail/6 > I want to change "touch" with "rm" >

Re: is there a "replace command" ?

2002-12-02 Thread Paul Everlund
On Mon, 2 Dec 2002, [iso-8859-9] Malik Bülent wrote: > On Freebsd4.x > I have a file. I want to change some expressions with new ones > For example a file > touch /var/qmail/1 > touch /var/qmail/2 > touch /var/qmail/3 > touch /var/qmail/4 > touch /var/qmail/5 > touch /var/qmail/6 > I want to

is there a "replace command" ?

2002-12-02 Thread Malik Bülent
On Freebsd4.x I have a file. I want to change some expressions with new ones For example a file touch /var/qmail/1 touch /var/qmail/2 touch /var/qmail/3 touch /var/qmail/4 touch /var/qmail/5 touch /var/qmail/6 I want to change "touch" with "rm" How can i replace a newones in stead of a lot of