Created
November 22, 2019 21:31
-
-
Save patrickmaciel/dab9778d61156983d4ccab5066d024a7 to your computer and use it in GitHub Desktop.
Reduce a large sql file ignoring insert's of specific tables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```sh | |
#!/bin/bash | |
sed '/INSERT INTO `rev_reviews`/d' dump.sql | | |
sed '/INSERT INTO `rev_log`/d' | | |
sed '/INSERT INTO `p_logconsulta`/d' | | |
sed '/INSERT INTO `p_logconsulta_20190726`/d' | | |
sed '/INSERT INTO `rev_log_products`/d' | | |
sed '/INSERT INTO `rev_log_tasks`/d' | | |
sed '/INSERT INTO `rev_log_products_client`/d' | | |
sed '/INSERT INTO `rev_log_reviews`/d' > reduced.sql | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment