I want to remove in my text any kind of ASCII character with code in interval [128-255]. gsub(/[^a-z]/, "", $0) --This is how I remove everything except the letters; gsub(/ē|é|ě|è|ū|ú|ǔ|ù|ǖ|ǘ|ǚ|ǜ|ü|ō|ó|ǒ|ò|ī|í|ǐ|ì|ā|á|ǎ|à|å|ä|â/, "", $0) -- This is how I remove some extended characters, but not every. gsub(/"[\128-\255]"/, "", $0) I am trying this, but it shows me an error, invalid interval. So, can anybody please help with that problem. Thanks beforehand.
Removing extended ASCII characters. Linux script (128-255)
333 views Asked by Alex At
2
Backslash codes must be in octal, or prefixed with a
x
and in hexadecimal.Or you could just use
strings
.