Created
September 20, 2019 19:30
-
-
Save Aarbel/dfc4719a26738b440e676dfa4bf70d89 to your computer and use it in GitHub Desktop.
Edit XML Tag attribute with sh bash or shell script.
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 '' "s/\(<tag_to_target [^>]*attribute_to_target=\"\)[^\"]*\"/\1$variable_to_set\"/" file.xml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment