Suryaman Maharjan wrote:
Once again, thanks to Sean and David, the rule is working as expected. One
more thing is learnt is that the account need to shell i.e /bin/bash for
it to work.
Any sh-based shell should work. Csh-based shells will have problems
with the exclamation points. However, if you take out the "<" input
redirector as I suggested before, the line won't require a shell, so the
shell won't matter ...
I now need to know how effecient it will be?
... and taking it out will also improve efficiency by not calling a
shell. Sed can read from files named as positional parameters on its
command line (unlike, say, tr).
Again,
:0
! `sed -e :a -e '$!N' -e '$!ba' -e 's-\n- -g' $HOME/list`
After all, if you're going to call a shell, you might as well use tr,
which is lighter-weight than sed:
:0
! `tr \\012 \\040 < $HOME/list`
But sed and a shell together are heavier than tr with a shell or sed
without a shell.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail