Skip to content

Instantly share code, notes, and snippets.

@panozzaj
Created June 9, 2010 02:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save panozzaj/430973 to your computer and use it in GitHub Desktop.
Save panozzaj/430973 to your computer and use it in GitHub Desktop.
zsh + couchdb:
alias uuid="curl -s http://127.0.0.1:5984/_uuids | sed s/'^.*\\['// | sed s/'].*'// | sed s/'\"'//g | sed s/','/' '/g"
Then use `uuid` to put in a uuid. This is useful for local curl'ing.
Example:
> curl -X PUT -d '{"hello": "world"}' http://127.0.0.1:5984/mydb/`uuid`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment