开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜