Created
September 12, 2012 00:15
-
-
Save meskarune/3703208 to your computer and use it in GitHub Desktop.
replace string in a file with info from another file
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
| 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