Skip to content

Instantly share code, notes, and snippets.

@ptigas
Created November 23, 2011 12:51
Show Gist options
  • Save ptigas/1388592 to your computer and use it in GitHub Desktop.
Save ptigas/1388592 to your computer and use it in GitHub Desktop.
get variables list from a SMARTY template
cat [file] | grep -o '\$[^} ;&?"-]*' | sort -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment