1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash # modify files 1 - $2, creating a new version with fixed contents echo "Modify:" for i in $(seq 1 $2) do $1 -u 1 -k a modifyfile -f $i -i container1/hello-world.tar > /dev/null if [[ $? -ne 0 ]] then echo "Request failed!" fi done