> If you're going to use a shell script, I think you will find this model
> both faster and safer: faster because the cat command is superflous, and
> safer because it keeps the original, "just in case."
>
> mv ${file{ ${file}~
> sed <${file}~ >${file} \
>    -e "s/ *$//"
>
> I've not tested mine either, but your sed's wrong;-)
>

 Oops - I think you have a typo there in the first line.

 But - none-the-less; my sed is right - you don't have to have
 the -e.  The traditional (pre-GNU) format didn't require
 the -e... the syntax was simply

           sed [-Ean] command [file ...]

 It is nice that you script preserves the original file - a much
 better idea!

        - Dave R. -

--
[EMAIL PROTECTED]                        Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com

Reply via email to