Created
October 4, 2011 21:51
-
-
Save stefanbirkner/1262939 to your computer and use it in GitHub Desktop.
Replace links with simple text
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
#!/bin/bash | |
grep -Rl "a href=" dirname | while read item | |
do | |
sed -i 's/<a href=".*">\(.*\)<\/a>/\1/' $item | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment