sed 匹配数字有以下方法:
[0-9] 或者 [[:digit:]]
无法用\d,跟Perl不一样,Perl这三样都可以。
参考资料:
1. https://superuser.com/questions/513412/how-to-match-digits-followed-by-a-dot-using-sed
2. https://stackoverflow.com/questions/9260625/sed-extracting-group-of-digits
sed 匹配数字有以下方法:
[0-9] 或者 [[:digit:]]
无法用\d,跟Perl不一样,Perl这三样都可以。
参考资料:
1. https://superuser.com/questions/513412/how-to-match-digits-followed-by-a-dot-using-sed
2. https://stackoverflow.com/questions/9260625/sed-extracting-group-of-digits
4157
5175

被折叠的 条评论
为什么被折叠?
