Skip to content

Instantly share code, notes, and snippets.

@silviogutierrez
Created April 11, 2013 14:12
Show Gist options
  • Save silviogutierrez/5363703 to your computer and use it in GitHub Desktop.
Save silviogutierrez/5363703 to your computer and use it in GitHub Desktop.
sqltrim ()
{
sed -e '/INSERT INTO `accesslog/d' -e '/INSERT INTO `apachesolr/d' -e '/INSERT INTO `cache/d' -e '/INSERT INTO `migrate_message_/d' -e '/INSERT INTO `search_/d' -e '/INSERT INTO `watchdog/d' $1 > $1.trimmed;
mv $1.trimmed $1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment