Search results

  1. S

    Gunzip & wildcards not working inside bash script

    Thanks for all this! You're right—the script looks in a directory for a mysql backup file in .gz format and then imports it into MySQL. (I import the unzipped .gz file, as MySQL reports database errors if I import the unzipped db file even via PHPMyAdmin—it always works with the .gz, though)...
  2. S

    Gunzip & wildcards not working inside bash script

    Thanks. I currently have #!/bin/sh and will try this.
  3. S

    Gunzip & wildcards not working inside bash script

    I'm new to Linux and would appreciate any help. I have a bash script that includes the line below. By the time the script gets to this line, it's already working from the same directory as the .gz file. /bin/gunzip -k < *.gz | /usr/bin/mysql -u root -p"************" sites With the above, I...
Top