4

Read from Input File and Append to Multiple Files

view full story
linux-howto

http://www.linuxquestions.org – Sorry for the long message, I wanted to be as clear as possible. I have to add hundreds of new servers to hundreds of configuration files in Nagios. Here is a sample structure: ------------------------------------------------------------------------ servers.txt has: SERVER3 SERVER4 SERVER5 ------------------------------------------------------------------------ service-template.txt has: define service{ use generic-service host_name $1 service_description Description1 servicegroups virtual-servers,standalone-servers check_command check_remote_procs (HowTos)