json-parser-prolog-lisp/word2normal.sh
2022-12-05 22:05:23 +01:00

27 lines
682 B
Bash
Executable file
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# Replace Unicode characters with their ASCII counterparts
# Usage: ./replace_unicode_with_ascii.sh < input_file
# Read the input from standard input and replace Unicode characters with their ASCII counterparts using a single sed command
sed -e "s/[]/'/g" \
-e 's/[“”]/"/g' \
-e 's/…/.../g' \
-e "s/[–—]/-/g" \
-e 's/ / /g' \
-e 's/«/"/g' \
-e 's/»/"/g' \
-e "s//'/g" \
-e "s//'/g" \
-e 's/„/"/g' \
-e 's/“/"/g' \
-e "s//'/g" \
-e "s//'/g" \
-e 's/„/"/g' \
-e 's/“/"/g' \
-e "s//'/g" \
-e "s//'/g" \
-e 's/•/*/g' \
-e 's/·/*/g' \
-e 's/×/*/g'