I have a file that contains :
<class> these are special @ $ characters / < > & " ' </class>
I want to remove all the special characters only, between
I tried this command.
sed "s/[^a-zA-Z0-9(<.class>)(<\/class>)/ /g" file.txt
In above command I have tried to keep alphabets, numeral, tags and everything else should be removed.
But it's not giving me the output I want.