Linux Remove Non Ascii Characters From File

[Solved] Linux Remove Non Ascii Characters From File | Ruby - Code Explorer | yomemimo.com
Question : linux remove non-ascii characters from file

Answered by : harry-slaughter

// Remove all non-ascii chars from file
perl -i.bak -pe 's/[^[:ascii:]]//g' filename.txt

Source : | Last Update : Wed, 20 Jul 22

Answers related to linux remove non ascii characters from file

Code Explorer Popular Question For Ruby