using sed to remove special chars and add spaces instead -
I have a block of text that I want to change:
^ @ ^ ^ @ Jfits ^ @ ^ a ^ @ pin ^ @ ^ a ^ @ sadface ^ @ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ @ ^ @ TTI ^ a ^ a ^ @ vuln ^ @ ^ a ^ @ yes ^ @
I use all the I tried: if You can include allowed characters, then you that No will replace everything in the set of alphanumeric characters with a place. If you want to replace all 'non-printable' characters with spaces now You can use a character group [1] with sed Although some older versions may not support this syntax, but it is standardized in the Unix specification so that you do not feel guilty for using it. [2] [1] ^ @ ^ A ^ with some spaces < Code> (and variations of those characters)
cat-A file | post-text "itemprop =" text ">
sed -e's / [^ a-zA-Z0- 9] / / g '
sed -e's / [^ [print:]] / / g.
Comments
Post a Comment