awk -F"=" '{gsub(" ","",$1);print}' file
原帖由 wtuter 于 2009-3-7 23:02 發(fā)表
awk -F'=' '{gsub(/ */,"",$1)print $1"="$2}' ufile
沒有測試,不行的話在 print前加個分號
原帖由 rhlei 于 2009-3-7 16:51 發(fā)表
[root@localhost qes]# sed -r 's/(\w*)\s*=/\1=/g' data
First timestamp= 2009-03-05 15:45:59062189
Last reset timestamp= 2009-03-07 16:19:50780360
不知道是不是你要的結(jié)果。
歡迎光臨 Chinaunix (http://www.72891.cn/) | Powered by Discuz! X3.2 |