On Tue, Jun 26, 2001 at 04:27:33PM -0500, Perry Hoekstra wrote:
> Is there an easy way to convert an ASCII file from [dos] to Linux.  I
> retrieved some JSPs from my W2K side and when I attempt to run them in
> BEA, I get some spurious errors.  If I bring them up in vi, I get the
> little [dos] indicator which leads me to believe that BEA is choking on
> dealing with DOS EOL on Linux.  I know within UltraEdit, there is a
> UnixToDOS format conversion option.  I could not find such an animal in
> either nedit or gedit.  Ideas?

Something along the lines of

sed -e "s/^M//g" dosfile > unixfile

should work, where the ^M is obtained by pressing ctrl-v ctrl-m.

-- 
That's not gibberish...  It's Linux. - Byers, The Lone Gunmen
Geek Code 3.12:  GCS d? s+: a C++ UL++++$ P++>+++ L+++>++++ E- W--(++) N+
o+ !K w--- O M- V? PS+ PE Y+ PGP t 5++ X+ R++ tv+ b+ DI++++ D G e* h r y+