Quoting Perry Hoekstra (dutchman at uswest.net):
> Greet the sun all:
> 
> 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?
> 

emacs takes care of this, m-x replace-string ^Q^M with nothing.

or 

cat my.jsp | tr -d '\015' > tmp.jsp
mv tmp.jsp my.jsp

-- 
Bob Tanner <tanner at real-time.com>       | Phone : (952)943-8700
http://www.mn-linux.org                 | Fax   : (952)943-8500
Key fingerprint =  6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9