Explorar el Código

'backup.sh' ändern

Daniel Wenzel hace 3 años
padre
commit
a164744106
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      backup.sh

+ 1 - 1
backup.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
 cd /switchbackup
-for switch in $(cat ./creds.txt); do
+for switch in $(cat ./creds.txt | grep -v "^#"); do
 
         TP_HOST=$(echo ${switch} | cut -d ";" -f 1)
         TP_IP=$(echo ${switch} | cut -d ";" -f 2)