我有一个管道列表,例如: test-run-First test-run-Me test-run-djfhd test-run-jhfkjdh ...
我想销毁这些管道,我该如何申请:fly -t test destroy-pipeline -p "all pipelines starting with test-run-*"?
谢谢
发布于 2020-01-30 10:20:23
我认为这样做的一个合理方法是使用管道将多个命令链接在一起。例如,您可以使用以下命令来实现此目的:
fly -t test pipelines | awk '/^test-run-/ { print $1 }' | xargs -n1 fly -t test destroy-pipline -n -phttps://stackoverflow.com/questions/59954136
复制相似问题