Skip to main content
added 33 characters in body
Source Link
rush
  • 28k
  • 9
  • 91
  • 115

Try it this way:

LANG=CLANG=iso-8859-1 sed -i -e "se"s/'//g" -e's/'//g' -e's/[\d128-\d255]//g' -e's/\x0//g' 

or betteryou might find this useful (will replace non-printable and single quotes):

LANG=iso-8859-1 sed -i -e"s/'//g" -e's's/'[^[:print:]]//g' -e's;s/[\d128-\d255]'\''//g' -e'sg;s/\x0'//g' filename 

Try it this way:

LANG=C sed -i -e "s/'//g" -e's/'//g' -e's/[\d128-\d255]//g' -e's/\x0//g' 

or better:

LANG=iso-8859-1 sed -i -e"s/'//g" -e's/'//g' -e's/[\d128-\d255]//g' -e's/\x0//g' 

Try it this way:

LANG=iso-8859-1 sed -i -e"s/'//g" -e's/'//g' -e's/[\d128-\d255]//g' -e's/\x0//g' 

or you might find this useful (will replace non-printable and single quotes):

sed -i 's/[^[:print:]]//;s/'\''//g;s/'//g' filename 
Source Link
rush
  • 28k
  • 9
  • 91
  • 115

Try it this way:

LANG=C sed -i -e "s/'//g" -e's/'//g' -e's/[\d128-\d255]//g' -e's/\x0//g' 

or better:

LANG=iso-8859-1 sed -i -e"s/'//g" -e's/'//g' -e's/[\d128-\d255]//g' -e's/\x0//g'