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.
25 lines
387 B
25 lines
387 B
4 years ago
|
#!/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 2 -d " "
|
||
|
|
||
|
|