Define a bash function Determinant2x2 which calculates the determinant of a 2x2 matrix. An example usage of the function is shown below. Assume that the arguments are only integers.
#for following Determinant
# a =|1 2|
# |3 4|
$ Determinant2x2 1 2 3 4
-2
Define a bash function `Determinant2x2` which calculates the determinant of a 2x2 matrix. An example usage of the function is shown below. Assume that the arguments are only integers. ### Example ```bash #for following Determinant # a =|1 2| # |3 4| $ Determinant2x2 1 2 3 4 -2 ``` Write a bash script which accepts an integer input and finds all the numbers from one to the number provided which are divisible by 3 and 5. Make sure that the script checks of the number is integer and is not less than one and exits with exit code 1 if the check fails. Write a **shell script** which will - Read usernames.txt text file with usernames and generate passwords for each username using a hash value generated using `shasum` command. - Stores the first ten characters from the output as a password and saves it into a new file `user_passwords.txt`. Hint: ```bash $ shasum --help Usage: shasum [OPTION]... [FILE]... Print or check SHA checksums. With no FILE, or when FILE is -, read standard input. -a, --algorithm 1 (default), 224, 256, 384, 512, 512224, 512256 ... ``` **Sample Input** ```text tisha sumedh avyan navya ``` ### Desired Output ```shell tisha:c0840f4321 sumedh:117045d067 avyan:6951b4a77f navya:57a84ed47c ```