Greetings, At 09:12 AM 12/31/2008, you wrote: >-----BEGIN PGP SIGNED MESSAGE----- >I am trying to auto generate my host file for a grid deployment. > >The following works well if I actually put a number in the of the for >loop. I have tried quite a few variations on this theme but cannot seem >to identify a working solution. Any ideas?
Sorry - not clear to me - generate via Cheetah, Python or something else? I converted a portion of this to a Bash script - what is your desired output? The output from your script is non-standard for a /etc/hosts file..., i.e. I would expect an IP address followed by hostnames and aliases (as below). aa.bb.cc.dd hostname hostname.alias1 hostname.alias2 Also note that the behavior of 'awk' using the '-v' option will vary depending upon the version of awk and/or OS (this may not be a problem but could make the solution less portable...) Please provide a sample output line and I should be able to give you a bash/bash-awk solution... :) Dale = = = = = = = = = = = = = = = = = = = = Dale E. Reagan | (912) 920-9299 Photographer / Consultant | [email protected] http://www.dalereagan.com/ PO Box 15336, Savannah, Ga 31416 USA _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
