Skip to content

Instantly share code, notes, and snippets.

@tomgullo
Created August 8, 2012 18:08
Show Gist options
  • Save tomgullo/3297137 to your computer and use it in GitHub Desktop.
Save tomgullo/3297137 to your computer and use it in GitHub Desktop.
sed example
#!/bin/sh
filename='?'
sed -i -e 's/
//g' $filename && sed -i -e 's/ class=\"pt12\"//g' $filename && sed -i -e 's/ class=\"pt10\"//g' $filename && sed -i -e 's/\Â\ //g' $filename && \
sed -i -e 's/<br>//g' $filename && sed -i -e 's/data-mce-//g' $filename && sed -i -e 's/ style="font-size: 10pt;"//g' $filename && sed -i -e 's/ style="font-size: 12pt;"//g' $filename && \
sed -i -e 's/ style="font-size: x-small;"//g' $filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment