Quote:
the file which has network status of set of servers
|
This is unclear, what is "network status" for you? Do you have some kind of deamon that monitor the "state" of your servers? Or some kind of centralized logfile? Or do you mean configuration file, maybe?
Please provide more information:
-Tell us what you are trying to do exactly (installing an application? which one? what have you done so far?)
-Give us details about what you call "network status" (are you really talking about the state of the server? If so, what application are you using to monitor it? Can you give an example? Otherwise, is there another name to this?)
Whatever...
If you want to create a new (empty) file in a shell script, use "touch", like in :
Code:
touch mynewfile.txt
This will create an empty mynewfile.txt file.
To make a loop from 1 to 15, you could use something like (where SOMETHING is a command) :
Code:
for x in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do SOMETHING; done
You can also use "echo" to echo text in a file, like in :
Code:
echo "happy happy joy" > mynewfile.txt