sed '/INSERT INTO `tablelog1`/d' xxxx.sql | sed '/INSERT INTO `tablelog2`/d' | sed '/INSERT INTO `tablelog3`/d' | sed '/INSERT INTO `tablelog4`/d' | sed '/INSERT INTO `tablelog5`/d' > reduced.sql
更好的方法
grep -vE 'INSERT INTO `(tablelog1|tablelog2|tablelog3|tablelog4)`' xxxx.sql > reduced.sql
#!/bin/bash # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing.
<?php /** * Default configuration for PHP Profiler. * * config.php * To change these, create a file called `config.php` file in the same directory * and return an array from there with your overriding settings. */