Question: I have a question about a program I'm writing on the Bash shell. I have the following two files: My source code looks like this:

I have a question about a program I'm writing on the Bash shell.

I have the following two files:

I have a question about a program I'm writing on the Bash

My source code looks like this:

shell. I have the following two files: My source code looks like

And my output looks like this:

this: And my output looks like this: The first two numbers, 2,

The first two numbers, 2, 4 are correct because "m1" has 2 rows and 4 columns.

However, the third and fourth numbers are incorrect because "m2" has 4 rows and 2 columns.

Can anyone tell my why the output is incorrect?

Thanks!

osl/cs344/blockl 961$ cat ml 2 7 osl /cs344/blockl 9629 cat m2 osl /cs344/blockl 963$ if [ $# -eq 3 ] then argl-s2 arg2-$3 fi numRowsl- numRows2O #numColsi-$(head-n1 $arg1 I wc -w) #numCos2-$(head-n1 $arg2 | wc -w) while read currLinel

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!