Skip to content

Instantly share code, notes, and snippets.

@libcrack
Created May 13, 2016 19:04
Show Gist options
  • Select an option

  • Save libcrack/e0abd14658ec198576b9e84f5394b5e5 to your computer and use it in GitHub Desktop.

Select an option

Save libcrack/e0abd14658ec198576b9e84f5394b5e5 to your computer and use it in GitHub Desktop.
escapestr_sed() {
sed -e 's/\//\\\//g' -e 's/\&/\\\&/g'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment