Posted By

fris on 10/03/09


css Bash style stylesheet

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


uncompress a minified stylesheet

 / Published in: Bash

  1. cat style.css | gsed 's/\([;{]\)\([^\n]\)/\1\n\t\2/g' | gsed 's/\([^}]\)}/\1;\n}\n\n/g' | gsed 's/{/ {/g' | gsed 's/[,]/& /g' | gsed '/}/ { n;n; s/}\n\([^\n]\)/}\n\n\1/ }'

Report this snippet  

You need to login to post a comment.