开发者

Bash script for searching and replacing tags

开发者 https://www.devze.com 2023-01-15 04:44 出处:网络
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 re

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

精彩评论

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