Mailinglist Archive: opensuse (1839 mails)

< Previous Next >
Re: [opensuse] Sed error
  • From: Anders Johansson <ajh@xxxxxxxx>
  • Date: Mon, 20 Sep 2010 20:24:26 +0200
  • Message-id: <201009202024.26984.ajh@xxxxxxxx>
On Monday 20 September 2010, Togan Muftuoglu wrote:
Hi,

I am trying to change the SuSEfirewall2 configuration via sed and I'm
getting an error. Can anyone highlight what I am missing here ? Thanks

sed -i
s/FW_SERVICES_ACCEPT_EXT\=\"\"/FW_SERVICES_ACCEPT_EXT\=\"0\/0\,tcp\,22\,\,h
itcount\=3\,blockseconds\=60\,recentname\=ssh\"/g
/etc/sysconfig/SuSEfirewall2

sed: -e expression #1, char 55: number option to `s' command may not be
zero

put everything from s/ to /g in single quotes

's/FW.........../g'

works

Anders
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
References