How to AWS Assume Role and then revert to the previous role after
If you need to assume a role in AWS and then revert back to the previous role once complete, you can use the following snippet of code:
# Save …
8 articles about bash development, tools, and best practices
If you need to assume a role in AWS and then revert back to the previous role once complete, you can use the following snippet of code:
# Save …
If you need to see the top 10 largest directories on your Linux system, you can use the following command:
du -h --max-depth=1 / | sort -rh | head -n …
Managing Docker images in Amazon Elastic Container Registry (ECR) is a common task for many developers and DevOps practitioners. Often, you need to …
Read Article →To generate Terraform code using a Bash shell script, you can utilize Python within the script. Here’s an example of how you can achieve this: …
Read Article →You can look to use:
command -v <the_command>
There are also 2 other ways, that we will run through a little further down, but for now..
You can recursively convert all your HTML files to Mardown format in Bash, by using Pandoc.
find . \-name "*.ht*" | while read i; do pandoc -f …
If you need to check if a volume is mounted in a Bash script, then you can do the following.
First we need to determine …
Read Article →If you need to check if a bash
variable is empty, or unset, then you can use the following code:
if [ -z "${VAR}" ];
The above code will check …
Read Article →