I started venturing in learning the art of using AWK/GAWK and wanted to simply added a period from line #11 to line #28 or to the end of the file if there is data. So for example:
11 Centos.NM
12 dojo1
13 redhat.5.5.32Bit
14 redhat.6.2.64Bit
15 mandriva.9.2.32Bit
16 RELEASE_WIN2003
17 SaintBox-Ubuntu-x64
18 SAINTexploitVM-x86
19 SAINTVM-x64
20 Ubuntu-12.04.x64
21 bigbadwolf.x64
22 WIN2003PATCHED
23 WIN2003UNPATCH
24 WIN-IQF3U12CJA5
25 XPSP3PATCHED
26 XPPROUNPATCHED
27 WIN2012
28 WIN8_141
to
11 Centos.NM.
12 dojo1.
13 redhat.5.5.32Bit.
14 redhat.6.2.64Bit.
15 mandriva.9.2.32Bit.
16 RELEASE_WIN2003.
17 SaintBox-Ubuntu-x64.
18 SAINTexploitVM-x86.
19 SAINTVM-x64.
20 Ubuntu-12.04.x64.
21 bigbadwolf.x64.
22 WIN2003PATCHED.
23 WIN2003UNPATCH.
24 WIN-IQF3U12CJA5.
25 XPSP3PATCHED.
26 XPPROUNPATCHED.
27 WIN2012.
28 WIN8_141.
This is what I had so far:
awk '{ NR==11,NR==28 print $0 "." }' < test_file
awk: { NR==11,NR==28 print $0 "." }
awk: ^ syntax error
awk: { NR==11,NR==28 print $0 "." }
awk: ^ syntax error
??