Created
July 11, 2011 12:07
-
-
Save miebach/1075728 to your computer and use it in GitHub Desktop.
Convert a DOS text-file to unix by removing cr and ^Z characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# remove cr and ^Z characters from a dos file: | |
# the codes are octal, oct15 = dec13 and oct32 = dec26 | |
tr -d '\15\32' < winfile.txt > unixfile.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment