[tony@localhost script]$ echo "123.qwer"|sed "s/\.*//g"
123qwer
[tony@localhost script]$ echo "123.qwer"|sed "s/\..*//g"
123
sed去掉小数点之后的字符:*代表0到多个,所以第一个命令中\.*只能替换掉小数点变成空
\..*代表了小数点之后的1到多个
[tony@localhost script]$ echo "123.qwer"|sed "s/\.*//g"
123qwer
[tony@localhost script]$ echo "123.qwer"|sed "s/\..*//g"
123
sed去掉小数点之后的字符:*代表0到多个,所以第一个命令中\.*只能替换掉小数点变成空
\..*代表了小数点之后的1到多个