|
|
This thread is locked; no one can reply to it.
|
1
2
|
| powers of 2 and 3 |
|
Thomas Fjellstrom
Member #476
June 2000
|
Karadoc ~~ said: Maybe I should install perl so that maybe one day I can swing across the room on a rope and miraculously solve problems [xkcd.com]. You mean that isn't normal? -- |
|
bamccaig
Member #7,536
July 2006
|
Tobias Dammers said: Shell one-liner: $ fromdos path/to/file Or you could do it with a tiny bit of sed, or good old tr: $ mv path/to/file path/to/file~ && tr -d '\r' <path/to/file~ >path/to/file
Both of your solutions are going DOS to UNIX (most likely the wrong way). -- acc.js | al4anim - Allegro 4 Animation library | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) |
|
Bruce Perry
Member #270
April 2000
|
Wordpad can cope with Linux line endings, and it converts them to DOS if you save. Having done that, you can use Tobias's code to convert back again -- |
|
bamccaig
Member #7,536
July 2006
|
I said: ...substitute ... \ with / in *nix.
Only in the file path, not the code. -- acc.js | al4anim - Allegro 4 Animation library | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) |
|
|
1
2
|