Created
February 20, 2012 18:28
-
-
Save fduran/1870515 to your computer and use it in GitHub Desktop.
Replace relative to absolute URL in a file
This file contains 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
# www.fduran.com | |
# replace in a file (index.php for example) links from relative <a href="/path to absolute <a href="http://example.com/ | |
sed -i 's/href=\"\//href=\"http:\/\/example.com\//g' index.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment