0

I have series of commands to be executed to complete an activity. First step is to capture an id from the terminal output and write it to a .sh file overwriting the existing ID.Please look into the below command and pls help me here :

$test group create project --tag version
  uploaded 1 GB
  group-abui349nboiqbn40bno4

Update the above group id in below test.sh file :

test.sh

project set --share='test' group-ajoeignob490iugnboiw5

Please let me know if this is possible.

Rahul
  • 677
  • 3
  • 20
  • 33
  • I guess you are looking for `project set --share='test' "$(test group create project --tag version | tail -n 1)"`, maybe without the double quotes if the command really prints two spaces in front and you don't want those in the argument (or use `sed` instead of `tail` to trim the result). – tripleee Aug 06 '21 at 12:18

0 Answers0