> > Hmm...works for me:
> >
> > krypton.private.network: -root-
> > # sed -n '$=' /etc/network.conf
> > 767
> >
> > krypton.private.network: -root-
> > #
> >
> > The sed man page from debian lists = as a "Zero- or One- address
command",
> > and $ is a valid single address...
>
> Yes, from the CLI, as you illustrate, it *does* work.  I didn't try that
> ;<
>
> However, these *all* fail:
>
> sed -n '/ DENY /s/DENY//p' /var/log/kern.log | sed -n '?='
> sed: -e expression #1, char 1: Unknown command: ``?''
>
> sed -n '/ DENY /s/DENY//p;?=' /var/log/kern.log
> sed: -e expression #1, char 19: Unknown command: ``?''
>
> sed -n '/ DENY /s/DENY//;?=' /var/log/kern.log
> sed: -e expression #1, char 18: Unknown command: ``?''

Try changing the ?= to $=, and maybe it won't complain about the unknown
command "?" ;-)

> I want to use sed to filter on [address]:
>
> / DENT /
>
> perhaps (or not) execute some command:
>
> s/DENY//
>
> and -- in that same instance of sed -- *count* the lines of output.
>
> What do you think?

It should work once you get the proper commands to sed...

Charles Steinkuehler
http://lrp.steinkuehler.net
http://c0wz.steinkuehler.net (lrp.c0wz.com mirror)



_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user

Reply via email to