This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for i in *.gz; do md5sum $i > /home/ubuntu/lot/$i.md5; done; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| count=001 | |
| newname=segmentmembership | |
| for i in *.json.gz; | |
| do | |
| c=`printf '%0.3d\n' $count` | |
| mv $i $newname.$c.json.gz | |
| count=$((count+001)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for i in *.json; do aws s3 cp $i s3://s3bucket/ls/ls/ ; done; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for i in *.json; do gzip $i; done; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| aws lambda list-functions | grep FunctionName | cut -d':' -f 2 | sed 's/"//g' | sed 's/,//g' | while read -r line; do aws lambda delete-function --function-name $line; done; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| certbot delete --cert-name <domain.io> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| countri=(SGP IDN) | |
| for i in {8..10}; do | |
| for j in "${countri[@]}"; do | |
| aws s3 cp --recursive s3://<bucket-name>/<directory-name>/year=2019/month=2/day=$i/country=$j ./day=$i/country=$j/ | |
| done | |
| done |
NewerOlder