Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux remove non-ascii characters from file

// Remove all non-ascii chars from file
perl -i.bak -pe 's/[^[:ascii:]]//g' filename.txt
 
PREVIOUS NEXT
Tagged: #linux #remove #characters #file
ADD COMMENT
Topic
Name
9+4 =