I have a huge text file containing this string/character <200b> that I want to delete. I tried with sed but it didn't work.
sed 's/<200b>//g' file
The character never shows when I open the file with a graphic text editor like gedit, I see it with vim.
Best Answer
<200b> is a Unicode for "Zero Width Space". You won't find it as a string. You can pipe the character into
sed
like this for removal:sed -i
will modify the file in-place.$(...)
is a Bash command substitution.echo
manual page:-n
do not output the trailing newline-e
enable interpretation of backslash escapes