|
发表于 2006-8-15 23:15:07
|
显示全部楼层
- awk 'BEGIN{FS="";OFS=""};{$8="0.88888";$9="";$10=$9;$11=$9;$12=$9;$13=$9;$14=$9;print}'
复制代码 This is a ugly way (calc the char) but given the fact that the FS in the orig string isn't consistent, I can't think of another by using awk. Also, when you assign value to any of the fields, awk will restore the default OFS. Using sed will be a hell lot easier. |
|