Removing Unicode Line Separator in Bash -
i have text file unicode line separator (hex code 2028).
i want remove using bash (i see implementations python, not language). command use transform text file (output4.txt) lose unicode line separator?
see in vim below:
probably tr command should work:
tr '\xe2\x80\xa8' ' ' < infile > outfile
working solution: op finding this:
sed -i.old $'s/\xe2\x80\xa8/ /g' infile
Comments
Post a Comment