|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] Silly Emacs Question
|
> 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
|
|