Skip to content

Instantly share code, notes, and snippets.

@stefanbirkner
Created October 4, 2011 21:51
Show Gist options
  • Save stefanbirkner/1262939 to your computer and use it in GitHub Desktop.
Save stefanbirkner/1262939 to your computer and use it in GitHub Desktop.
Replace links with simple text
#!/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