Script en Bash, qui découpe un dumpSQL en un seul fichier pour le découper en 1 par table
#!/bin/bash
file=$1 # the input file directory= »$file-splitted » # the output directory output= »$directory/header » # the first file containing the header GREP= »DROP TABLE » # what we are looking for
mkdir $directory # create the output directory
while read line do # if the current line contains the wanted statement if [ $(echo « $line » | grep -c « $GREP ») == « 1 » ] then # extract the file name myfile=$(echo $line | awk ‘{print $5}’ | sed -e ‘s/`//g’ -e ‘s/;//g’) # set the new file name output= »$directory/$myfile » fi echo « $line » >> $output # write to file done < $file
Warning: Undefined array key "HTTP_REFERER" in /var/www/html/kogitae.fr/blog/wp-content/plugins/auto-seo-tags/autotag.php on line 35
Warning: Undefined array key "host" in /var/www/html/kogitae.fr/blog/wp-content/plugins/auto-seo-tags/autotag.php on line 38