Bash Script to increment
Am writing a script to automate VPS installations, however i need your help, my script should read the number of VPSs already there with:
Quote:
Quote:
Quote:
I want a way to subtract the result of vzlist -a -1 so as to get the real number of machines running and then the script should also increment always by 1 during installations |
Try this:
Code:
vzlist -a | awk 'END{ print NR-1 }' |
druuna, thanks alot....
|
All times are GMT -5. The time now is 05:07 AM. |