On Tue, Jun 26, 2001 at 11:38:14PM +0200, Thomas Eibner wrote: > On Tue, Jun 26, 2001 at 04:27:33PM -0500, Perry Hoekstra wrote: > > 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? > > I usually do something like: > > perl -pi -e 's/\r\n/\n/' file > > or > > tr -d '\015' file Or in vim from the colon prompt type: :s/^V^M// (where ^V = control+V and ^M=control+M) -- Jim Crumley | crumley at fields.space.umn.edu | Work: 612 624-6804 or -0378 |