Github pages blog
Bash one liner to go over every directory in current directory and in each check that they are on master branch and then do git pull origin master:
“switch each repo to master and then pull, instead of skipping:”
for d in */; do [ -e "$d/.git" ] || continue; echo "== $d"; git -C "$d" checkout master && git -C "$d" pull origin master; done
Here I’m using it to do a basic healthcheck:
while true;do curl -I 'https://devops-tutorials.site/health'; done
Here is the resource list:
(name it 1.txt)
bucketone
buckettwo
bucketthree
bucketfour
Here is the script loop.sh:
#!/usr/bin/env bash
while read p; do
echo "\"arn:aws:glue:eu-west-1:444455556666:database/$p\","
done <1.txt
Run loop.sh
$ bash loop.sh
"arn:aws:glue:eu-west-1:444455556666:database/bucketone",
"arn:aws:glue:eu-west-1:444455556666:database/buckettwo",
"arn:aws:glue:eu-west-1:444455556666:database/bucketthree",
"arn:aws:glue:eu-west-1:444455556666:database/bucketfour",