|
发表于 2003-9-5 18:22:47
|
显示全部楼层
我的理解是不是这样的呀?(变通一下)- #!/bin/ksh
- echo -n "input your full name?"
- read a b
- echo -n "input your age:"
- read age
- awk 'BEGIN{OFS=" ";print "'${a}'","'${b}'",":","'${age}'"}'
- 运行结果:
- input your full name?wang qiang
- input your age:23
- wang qiang : 23
复制代码 |
|