how to convert windows formatted text files to *nix formatting?
Hi all,
I have a text file created in Windows with the following format Code:
<name1> <number1> Code:
#!/bin/bash Thanks for any help. |
dos2unix is what you're looking for.
|
Maybe, just open the file with a linux editor like kwrite or vi and make some minor change, then save it.
|
thanks dark_helmet, you rule.
homey, thanks also, but i gotta go thru a massive amount of these files, so it would be rough to do it by hand. |
|
I think I have the same problem :/ only the SED script wouldn't work for me :(
Any other ways of doing this. Thanks BL |
Again: dos2unix
It's a program you run from the command line. man dos2unix to read about it. If you tried it and had errors, then please post them. |
Code:
dos2unix -n windows.txt unix.txt edit: oh, i guess there is a sed example there to convert from windows to unix format also. my bad. |
Cheers pees,
I installed tofrodos and was able to add that into my script and it worked fine!! BL |
All times are GMT -5. The time now is 01:43 PM. |