5

Search for the word and exporting 35 characters after that word using shell script?

view full story
linux-howto

http://www.unix.com – I have a file input.txt which have loads of weird characters, html tags and useful materials. I want to display 35 characters after the word description excluding weird characters like $$#$#@$#@***$# and without html tags in the new file output.txt. Help me. Thanx in advance. My final goal is to find the word description and print 35 characters after description which shouldn't include the html tags and weird characters. Is it possible? Like here: Code: description><p><img class="float_right"  src="http://static3.businessinsider.com/image/502a (HowTos)