I have a word document and I want to pick only the lines which begin with an integer. i have cygwin and want to use awk command to pick the entire line…
the command i am using is awk /n/ document1 but it is pulling lines with “n” alphabet for me.
eg :
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
I want to pick up the characters beginning with integers like 129, 130, 131, and the next 11 characters after that. any help would be highly appreciated…
1 Answer