Shell
.https://cloud.google.com/shell/docs/configuring-cloud-shell
declare -a tables=('click_user_sessions' 'user_ip_activity');
for i in "${tables[@]}"
do
table_name=$i
TABLE_NAME=`echo $table_name | tr '[a-z]' '[A-Z]'`
## Cleanup existing data
echo -e "\t-> Remove any existing Elastic search config"
curl -s -X "DELETE" "http://$ELASTIC_HOST:9200/""$table_name" >>/tmp/log.txt 2>&1
done/run

Library
cat command
Permissions
history
Ctrl + R - Recursive command search
Environment variables
Windows (PowerShell)
Windows (cmd.exe)
Unix systems
Java Dev Environment
PGP
/etc/profile
Install Ansible terraform
sed


.sh examples
Powershell
.https://cloud.google.com/iam/docs/creating-managing-service-account-keys#uploading
Tips
How to remove a file named -r
-r is normally a flag, but here it is accidentally created
Last updated
Was this helpful?