procmail
[Top] [All Lists]

Re: moving first line to end in sed

2000-07-01 09:15:17
When I suggested,

T>       sed -ne 1h -e \$G -e 2,\$p

Bart cautioned me,

S> Gotta be careful there ... some versions of sed don't let you put the -n
S> and the -e in the same argument like that.

OK; I've never run into that.  That is a big deficiency, because if they
can't handle -n and -e in one argument, how can they deal with hash-bang
sedfiles that start

 #!/usr/bin/sed -nf

given that there can be only one argument to the executable on the hash-bang
line and

 #!/usr/bin/sed -n -f

won't be tolerated by the kernel?  Will "#n" work on the second line if the
topmost line is the hash-bang?  I'd test for myself, but I don't have access
to a version of sed that won't accept -ne and -nf.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>