Files
ProxmoxHelper/Playground/testCTloopExclude.sh
2022-04-15 22:42:28 +02:00

9 lines
185 B
Bash

#!/bin/bash
ExcludeList=(100 900)
for CTID in $(pct list | tail -n+2 | awk '{print $1}'); do
if [[ "${ExcludeList[*]}" =~ $CTID ]]; then continue; fi
echo "Task for $CTID"
done