Skip to content

Instantly share code, notes, and snippets.

@dogukancagatay
Last active December 28, 2015 17:29
Show Gist options
  • Save dogukancagatay/7535931 to your computer and use it in GitHub Desktop.
Save dogukancagatay/7535931 to your computer and use it in GitHub Desktop.
Latex dökümanındaki Türkçe karakterleri gösterilebilecek hale dönüştürmek icin sed komutu.
sed -e 's/ğ/\\u{g}/g' -e 's/Ğ/\\u{G}/g' -e 's/ç/\\c{c}/g' -e 's/Ç/\\c{C}/g' -e 's/ş/\\c{s}/g' -e 's/Ş/\\c{S}/g' -e 's/ü/\\"{u}/g' -e 's/Ü/\\"{U}/g' -e 's/ö/\\"{o}/g' -e 's/Ö/\\"{O}/g' -e 's/ı/{\\i}/g' -e 's/İ/\\.{I}/g' input.txt > output.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment