Skip to content

Instantly share code, notes, and snippets.

@junquera
Created August 9, 2016 07:14
Show Gist options
  • Select an option

  • Save junquera/bcfbf0734070abfc4d56bc9f4a81859e to your computer and use it in GitHub Desktop.

Select an option

Save junquera/bcfbf0734070abfc4d56bc9f4a81859e to your computer and use it in GitHub Desktop.
Substitute tag with file
# Example perl -pe 's/{css}/`cat stylesheet.css`/ge' -i index.html
perl -pe 's/{tag}/`cat file.from`/ge' -i file.to
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment