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 But there's supposed to be a dos2unix tool, not that it's hard to make yourself. -- Thomas Eibner <http://thomas.eibner.dk/> DnsZone <http://dnszone.org/> mod_pointer <http://stderr.net/mod_pointer>