vim下删除文本中所有中文字符-linux

mac2025-08-08  15

vim

:%s/\v[^\x00-\xff]+//g

 

sed

  LANG=C sed -r "s/[\x81-\xFE][\x40-\xFE]//g" text

最新回复(0)