Re: problem with sed command and csh

2007-06-19 Thread Giorgos Keramidas
On 2007-06-18 12:28, Nikos Vassiliadis [EMAIL PROTECTED] wrote: Last but not least, do you have use csh? It's not recommend for scripting. This must be the most sensible thing I've read in the entire thread. Quoting rules aside, tcsh is a nice interactive shell, but there are far too many

Re: problem with sed command and csh

2007-06-19 Thread Giorgos Keramidas
On 2007-06-18 11:33, Olivier Regnier [EMAIL PROTECTED] wrote: I founded solution with awk command and that works well. cat /usr/local/etc/pkgtools.conf | awk '{ sub(/^[ \t]*MAKE_ARGS = {/, \n\t\x27ports-mgmtp/portupgrade\x27 = \x27WITH_BDB4=1\x27,\n\t\x27sysutils/fastest_csvsup\x27 =

Re: problem with sed command and csh

2007-06-18 Thread Nikos Vassiliadis
On Saturday 16 June 2007 16:35, Olivier Regnier wrote: Olivier Regnier a ιcrit : Nikos Vassiliadis a ιcrit : On Friday 15 June 2007 13:29, Olivier Regnier wrote: Hi everybody, Actually, i'm working on FreeBSD 6.2 and csh shell. With a sh script, i trying to execute this command :

Re: problem with sed command and csh

2007-06-18 Thread Olivier Regnier
Nikos Vassiliadis a écrit : On Saturday 16 June 2007 16:35, Olivier Regnier wrote: Olivier Regnier a ιcrit : Nikos Vassiliadis a ιcrit : On Friday 15 June 2007 13:29, Olivier Regnier wrote: Hi everybody, Actually, i'm working on FreeBSD 6.2 and csh shell. With a sh

Re: problem with sed command and csh

2007-06-15 Thread Nikos Vassiliadis
On Friday 15 June 2007 13:29, Olivier Regnier wrote: Hi everybody, Actually, i'm working on FreeBSD 6.2 and csh shell. With a sh script, i trying to execute this command : sed -e s/MAKE_ARGS\([^{]*\){/MAKE_ARGS\1{\n\t'mail/nbsmtp' = 'WITH_IPV6=1 WITH_SSL=1',/ /usr/local/etc/pkgtools.conf

Re: problem with sed command and csh

2007-06-15 Thread Olivier Regnier
Nikos Vassiliadis a écrit : On Friday 15 June 2007 13:29, Olivier Regnier wrote: Hi everybody, Actually, i'm working on FreeBSD 6.2 and csh shell. With a sh script, i trying to execute this command : sed -e s/MAKE_ARGS\([^{]*\){/MAKE_ARGS\1{\n\t'mail/nbsmtp' = 'WITH_IPV6=1 WITH_SSL=1',/

Re: problem with sed command and csh

2007-06-15 Thread Nikos Vassiliadis
On Friday 15 June 2007 15:24, Olivier Regnier wrote: Nikos Vassiliadis a écrit : On Friday 15 June 2007 13:29, Olivier Regnier wrote: Hi everybody, Actually, i'm working on FreeBSD 6.2 and csh shell. With a sh script, i trying to execute this command : sed -e

Re: problem with sed command and csh

2007-06-15 Thread Garrett Cooper
Nikos Vassiliadis wrote: On Friday 15 June 2007 15:24, Olivier Regnier wrote: Nikos Vassiliadis a écrit : On Friday 15 June 2007 13:29, Olivier Regnier wrote: Hi everybody, Actually, i'm working on FreeBSD 6.2 and csh shell. With a sh script, i trying to execute this command :