Question: 1). Write a bash script to print all 16 binary 2 by 2 matrices. Do not call any external programs in this script. 2). Write

1). Write a bash script to print all 16 binary 2 by 2 matrices. Do not call any external programs in this script.

2). Write a bash script to print all possible 2 by 2 matrices in which each element can be one of two or more distinct (lower case) characters from the English alphabet. The candidate English characters for the matrix elements should be provided by the user as the command line arguments. Do not call any external programs in this script. A sample run can look like the following.

problem 2 example:

$bash Question2.sh a z

a a

a a

a a

a z

...

z z

z z

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!