Michael C. Toren on Wed, 29 Mar 2000 13:29:41 -0500 (EST) |
> If you edit a file under windows, then edit it under linux (vi or emacs or > whatever) you'll see those ^M s. My favorite way of getting rid of them is > to do > > cat myfile | tr -d '\r' > out Or: tr -d '\r' < myfile > out Generally speaking, if you find yourself using cat solely for the purpose of piping a file to stdin of another process, you can use input redirection ("<") instead, to optimize things a bit. -mct
|
|