I was writing a script and needed to generate a block of sequentially numbered host names and learned that VIM could do this for me.
for i in range(1,40) | put =’host’.i.’.domain.org’ | endfor
if you need ip’s:
for i in range(1,10) | put = ’192.168.0.’.i | endfor




Recent Comments