Created
August 5, 2016 08:25
-
-
Save jkomyno/621e7a1d8b48337d437b31134bd0b3b0 to your computer and use it in GitHub Desktop.
This bash line will find any occurence of <Tag /> and will replace it by <Tag></Tag>
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
cat file.xml | sed -e "s/<\([^>]*\) \/>/<\1><\/\1>/g" > newfile.xml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment