Skip to content

Instantly share code, notes, and snippets.

@nad2000
Created June 29, 2013 08:26
Show Gist options
  • Save nad2000/5890358 to your computer and use it in GitHub Desktop.
Save nad2000/5890358 to your computer and use it in GitHub Desktop.
remove DOS line ends (DOS to UNIX) and add the missing field to TAB separated file (TSV)
LANG=ko_KO.UTF-8 sed 's/\r$//; s/^\([^\t]*\)\t\([^\t]*\)$/\1\t\2\t/' set2.csv > set2_.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment