Skip to content

Instantly share code, notes, and snippets.

@chuckwagoncomputing
Created June 27, 2013 21:07
Show Gist options
  • Save chuckwagoncomputing/5880414 to your computer and use it in GitHub Desktop.
Save chuckwagoncomputing/5880414 to your computer and use it in GitHub Desktop.
Execution of functions from xml tags
xidel $1 -e 'xquery version "1.0"; for $i in //* return concat(name($i), " ", $i, "�")' | while read -d $'\0' i; do if `type $(echo $i | cut -d " " -f 1) 2> /dev/null | grep function` >> /dev/null; then $i; else :; fi; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment