Skip to content

Instantly share code, notes, and snippets.

@meskarune
Created September 12, 2012 00:15
Show Gist options
  • Select an option

  • Save meskarune/3703208 to your computer and use it in GitHub Desktop.

Select an option

Save meskarune/3703208 to your computer and use it in GitHub Desktop.
replace string in a file with info from another file
sed -i.bac '/@post/ {
s/@post//g
r posts.html
}' template.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment