【发布时间】:2012-11-16 18:56:29
【问题描述】:
我有一个 word 文档,我只想选择以整数开头的行。我有 cygwin 并想使用 awk 命令来选择整行...
我使用的命令是 awk /n/ document1,但它正在为我拉带“n”字母的行。
例如:
129 CalledVPNTop-
GroupNumber
Char[15] Indicates the top group number of the called party.
Value range: numerals within 0-9
Can be null
130 CalledVPNGrou
pNumber
Char[10] Indicates the group number of the called party.
Value range: numerals within 0-9
Can be null
131 CalledVPNShor
tNumber
Char[10] Indicates the short number of the called party
Value range: numerals within 0-9
Can be null
132 CallingNetwork
Type
Char[10] Reserved.
Can be null
133 CalledNetwork-
Type
Char[10] Reserved.
Can be null
134 GroupCallType Char[10] Indicates the call type when the charged subscriber
is a VPN user.
The options are as follows:
l 0: On-net call
l 1: Off-net call
l Other: to be extended
我想提取以 129、130、131 等整数开头的字符,以及之后的 11 个字符。任何帮助将不胜感激...
【问题讨论】: