学艺不精,一开始用了 “grep -ne '46.5743' file.txt” 提取含有46.5743的小数不成功,后面查资料才知道正则表达式中,小数点代表的是:一定有一个任意字节。
正确的写法应该是:
grep -ne '46\.5743' file.txt
学艺不精,一开始用了 “grep -ne '46.5743' file.txt” 提取含有46.5743的小数不成功,后面查资料才知道正则表达式中,小数点代表的是:一定有一个任意字节。正确的写法应该是:grep -ne '46\.5743' file.txt 转载于:https://www.cnblogs.com/chenwenyan/p/9009253.htm...
学艺不精,一开始用了 “grep -ne '46.5743' file.txt” 提取含有46.5743的小数不成功,后面查资料才知道正则表达式中,小数点代表的是:一定有一个任意字节。
正确的写法应该是:
grep -ne '46\.5743' file.txt
转载于:https://www.cnblogs.com/chenwenyan/p/9009253.html
更多推荐
所有评论(0)