new pass, adjust jws to store in homedir
j3s j3s@c3f.net
Fri, 11 Sep 2020 10:09:12 -0500
3 files changed,
2 insertions(+),
2 deletions(-)
M
bin/MACC02VK5ECHTD7/jws-fetch
→
bin/MACC02VK5ECHTD7/jws-fetch
@@ -4,7 +4,7 @@ date=$(date +%s)
for r in us-east-1 us-west-2; do for p in browse cgraph; do for e in test stage prod; do - dir="/tmp/jws/${r}/${p}/${e}" + dir="$HOME/.jws/${r}/${p}/${e}" mkdir -p "$dir" echo "Fetching ${r}/${p}/${e}" aws ec2 describe-instances --profile "${p}_${e}" --region "$r" --output text --query "Reservations[*].Instances[*].{
M
bin/MACC02VK5ECHTD7/jws-grep
→
bin/MACC02VK5ECHTD7/jws-grep
@@ -1,6 +1,6 @@
#!/bin/sh -stuff=$(cat /tmp/jws/*/*/*/current) +stuff=$(cat ~/.jws/*/*/*/current) for i in $@; do stuff=$(echo "$stuff" | grep -i $i)