I\'m trying to create a small little convenience script for our team. Unfortunately, our entire build environment is based on tcsh
for historical reasons. In the
Using the linked duplicate, I was able to find a complete answer:
foreach pair ( $BUILD_MATRIX:q )
set candidate = `echo $pair | sed 's/\([^:]*\):\(.*\)/\1/'`
set command = `echo $pair | sed 's/\([^:]*\):\(.*\)/\2/'`
echo "pair: ${pair}"
echo "candidate: ${candidate}"
echo "command: ${command}"
end