Skip to content

Instantly share code, notes, and snippets.

@coldclimate
Created March 18, 2013 10:58
Show Gist options
  • Save coldclimate/5186432 to your computer and use it in GitHub Desktop.
Save coldclimate/5186432 to your computer and use it in GitHub Desktop.
A one liners to strip all the crap from php.ini so you can diff it easily when you upgrade
cat php.ini.ucf-old | sed '/^;/ d' | sed '/^\[/ d' | sed '/^$/d' | sort > php.old
@coldclimate
Copy link
Author

removes comments, blank lines and lines starting with [ then sorts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment