Skip to content

Instantly share code, notes, and snippets.

View mikemowgli's full-sized avatar

Michaël Van de Borne mikemowgli

  • Free Bird Computing
  • Charleroi, Belgium
View GitHub Profile
@eyecatchup
eyecatchup / prettyCss.sh
Created October 13, 2013 05:29
Bash script to "pretty-print" minified CSS.
#!/bin/bash
#Author: Stephan Schmitz, https://github.com/eyecatchup, <eyecatchup@gmail.com>
#Based on work by: Michael Bianco, http://developer.mabwebdesign.com/, <software@mabwebdesign.com>
#Description: Bash script to create a pretty-printed version of a minified CSS file.
# Note: Requires GNU sed. See: http://www.gnu.org/software/sed//sed.html
#Usage: prettyCss.sh inputfile [outputfile]
# If [outputfile] is not given, pretty-printed CSS will be send to stdout.
SED_COMMAND=/bin/sed # NOTE: Change the SED_COMMAND variable value to the path to your GNU sed!