- 论坛徽章:
- 3
|
原帖由 WinnerBoy 于 2008-11-8 20:48 发表 ![]()
这种方法好简洁,但是1是什么意思啊,怎么在awk中没见到这种用法。可有相关资料看看,谢谢。
man awk
PATTERNS AND ACTIONS
AWK is a line-oriented language. The pattern comes first, and then the action. Action statements are enclosed in { and }. Either the pattern may be missing, or the action may be missing, but, of course, not both. If the pattern is missing, the action is executed for every single record of input. A missing action is equivalent to
{ print }
which prints the entire record.
[ 本帖最后由 ynchnluiti 于 2008-11-8 21:41 编辑 ] |
|