Give a better advice on how to convert DOS text to UNIX text.
The former tip used `col -bx', which would not only discard CR's, but also expand TAB's and remove BS'en. This effect is not always wanted. MFC after: 1 week
This commit is contained in:
parent
55fc1315ca
commit
53365f4b43
@ -374,8 +374,8 @@ Need to print a manpage? Use
|
|||||||
%
|
%
|
||||||
Need to remove all those ^M characters from a DOS file? Try
|
Need to remove all those ^M characters from a DOS file? Try
|
||||||
|
|
||||||
col -bx < dosfile > newfile
|
tr -d \\r < dosfile > newfile
|
||||||
-- Dru <genesis@istar.ca>
|
-- Originally by Dru <genesis@istar.ca>
|
||||||
%
|
%
|
||||||
Forget what directory you are in? Type "pwd".
|
Forget what directory you are in? Type "pwd".
|
||||||
-- Dru <genesis@istar.ca>
|
-- Dru <genesis@istar.ca>
|
||||||
|
Loading…
Reference in New Issue
Block a user