tags:

views:

33

answers:

1

I have a file have lots of string tags like </usr/share/some_pattern>, all they have in common is they all begin with a < and end with a >, how can write a bash script to remove all these tags(including the strings inside)?

+2  A: 
sed 's/<[^>]*>//g' file
Philipp
jyzuz
Or in Emacs: `M-x replace-regexp RET <[^>]*> RET RET C-x C-s C-x C-c`
Philipp