#!/bin/bash # eqx-get-project-uuid # # XXX not real stable way to do this... # # Get project UUID from a name # # Usage: # eqx-get-project-uuid [name] # Example: # eqx-get-project-uuid fooproject EQXPROJECT="$1" if [[ $1 == "" ]] then \ echo -e "Need project name, such as:\n" eqx-get-project-names echo exit fi # XXX this... packet \ project \ get \ --project $EQXPROJECT \ 2>/dev/null | \ grep -w " $EQXPROJECT " | \ cut -f 2 -d " "