You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
eqx/eqx-get-project-devices-name

25 lines
387 B

#!/bin/bash
# eqx-get-project-devices-id
#
# Usage:
# eqx-get-project-devices-id [project name]
# Example:
# eqx-get-project-devices-id fooproject
EQXPROJECT="$1"
if [[ $1 == "" ]]
then \
echo -e "Need project name, such as:\n"
eqx-get-project-names
echo
exit
fi
eqx-get-project-devices \
"$EQXPROJECT" | \
grep -v -e '^+' -e "CREATED" | \
cut -f 4 -d " "