|
发表于 2003-9-11 09:13:58
|
显示全部楼层
最初由 javalee 发表
use awk ;)
[/home/javalee/myshell]cat a
there is - 3 test data file -- you and me
there is - 4 test data file -- you and me
there is - 5 test data file -- you and me
[/home/javalee/myshell]cat a|tr -d -|awk '$3="-0"$3{print}'|awk '$7="-- "$7{print}'
there is -03 test data file -- you and me
there is -04 test data file -- you and me
there is -05 test data file -- you and me
呵呵,看起来有点大炮打蚊子的感觉。 |
|