Bash script for searching and replacing tags
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)?
sed 's/<[^>]*>//g' file
精彩评论