Skip to content

Instantly share code, notes, and snippets.

@javiervidal
Created March 31, 2010 11:53
Show Gist options
  • Save javiervidal/350225 to your computer and use it in GitHub Desktop.
Save javiervidal/350225 to your computer and use it in GitHub Desktop.
One-liner to recursively replace <br> with <br/>
for f in `ack -l '<br>' app`; do sed -i.bak -e 's/<br>/<br\/>/g' $f; done
# ack -l '<(br|BR)\s*>' app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment