Re: CR characters in d/l'ed text files

2001-06-27 Thread Vineet Kumar
tr -d '\015' < pc.file should do the trick. Be careful not to redirect that ouput back onto your input file, though, you have to put that to a temp file first. (if you tried to do > pc.file the file would be clobbered when the output stream opened it for writing). While we're on the subject, and

Re: CR characters in d/l'ed text files

2001-06-23 Thread Andrew Perrin
dos2unix foo.java (or see man todos for more options) -- Andrew J Perrin - [EMAIL PROTECTED] - http://www.unc.edu/~aperrin Assistant Professor of Sociology, U of North Carolina, Chapel Hill 269 Hamilton Hall, CB#3210, Chape

CR characters in d/l'ed text files

2001-06-23 Thread Kevin Stokes
I have a very simple newbie question. I have downloaded a bunch of .java source code, but when I edit it with VI, there is a carriage return at the end of each line. What is the standard Linux way of filtering those out? Thanks very much for your time. Kevin Stokes Pie in the Sky Softwa