-
-
Save platinumthinker/8b5b6e2652ac75c4faf91524f447e17c to your computer and use it in GitHub Desktop.
sed magic delimiter
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
| magic_sed() { | |
| local INPUT_FILE=$1 | |
| local REGEXP=$3 | |
| local REPLACE=$4 | |
| sed -e 's'$'\001'"$REGEXP"$'\001'"$REPLACE"$'\001''g' $INPUT_FILE | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment