I've got a question. I'm doing a simple script right now and it isn't working like I want.
#!/bin/bash cat /etc/backup.conf | egrep -v "(^#.*|^$|^--.*)" > /tmp/databases while read line; do pt-table-checksum [options] --databases $line --quiet done < /tmp/databases rm /tmp/databases
As you see I put names of databases to file /tmp/databases. Then I want to use pt-table-checksum for every database in that file line by line. This script works but only for first database name in file. Then it stops.