ms, sanesecurity, clamd and freebsd
René Berber
r.berber at computer.org
Mon Oct 8 20:40:06 IST 2007
Mikael Syska wrote:
[snip]
> I get the following:
> sed: 1: "s/\/$//; s/^.*loading d ...": bad flag in substitute command: 'i'
>
> And then I'm lost ... just wandered if some one here maybe could tell me
> if the "sed" command is different on FreeBSD or maybe someone using it
> on freebsd with no problems .... ?
Yes sed is different, GNU's sed does accept the -i option, other older versions
of sed (which I have in Solaris) don't.
There are at least 2 options:
- Install GNU sed;
- Change the script from sed to perl. perl also has a -i option so the
equivalent of what I see above would be:
perl -pi -e "s/\/$//; s/^.*loading d ..."
--
René Berber
More information about the MailScanner
mailing list