[opensuse] Sed error
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\,\,hitcount\=3\,blockseconds\=60\,recentname\=ssh\"/g /etc/sysconfig/SuSEfirewall2 sed: -e expression #1, char 55: number option to `s' command may not be zero -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Anders Johansson
-
Togan Muftuoglu