awk Adding a Period at the end of a line

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

??

awk ' { if(NR>=11 && NR<=28) print $0"."; else print $0; } ' test_file

I read the solution from another forum where I posted the question:

awk ' NR>=11 && NR <= 28 { print $0 "." } ' test_file

:frowning:

That will print only that range of lines, rather than simply modifying that range and leaving the others unchanged.

Try:

awk 'NR>=11 && NR<=28 { sub(/[[:space:]]*$/,".&") }1' infile

And another way:

awk '/11/,/28/{gsub(/\s*$/, "");print $0"."}' file

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.