JAVA-20220 Added suffix -modules to aws-lambda, clojure, terraform, linux-bash

This commit is contained in:
Dhawal Kapil
2023-04-12 08:27:20 +05:30
parent a99b77cc7f
commit ac150dc09e
95 changed files with 12 additions and 5 deletions

View File

@@ -0,0 +1,4 @@
### Relevant Articles:
- [How to Use Command Line Arguments in a Bash Script](https://www.baeldung.com/linux/use-command-line-arguments-in-bash-script)
- [Concatenate Two Strings to Build a Complete Path in Linux](https://www.baeldung.com/linux/concatenate-strings-to-build-path)

View File

@@ -0,0 +1,14 @@
#!/bin/bash
while getopts u:a:f: flag
do
case "${flag}"
in
u) username=${OPTARG};;
a) age=${OPTARG};;
f) fullname=${OPTARG};;
esac
done
echo "Username: $username";
echo "Age: $age";
echo "Full Name: $fullname";

View File

@@ -0,0 +1,5 @@
#!/bin/bash
echo "Username: $1";
echo "Age: $2";
echo "Full Name: $3";

View File

@@ -0,0 +1,8 @@
#!/bin/bash
i=1;
for user in "$@"
do
echo "Username - $i: $user";
i=$((i + 1));
done

View File

@@ -0,0 +1,10 @@
#!/bin/bash
i=1;
j=$#;
while [ $i -le $j ]
do
echo "Username - $i: $1";
i=$((i + 1));
shift 1;
done