Created
August 17, 2017 17:34
-
-
Save KalobTaulien/123ae6c6e349c2c84245f1c71631f66d to your computer and use it in GitHub Desktop.
Strip WordPress Comments from WXR File.
This file contains 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
sed -i '/<wp:comment>/,/<\/wp:comment>/d' wordpress_wxr.xml | |
sed -i '/<wp:comment_status>/,/<\/wp:comment_status>/d' wordpress_wxr.xml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment