1. Engineering
  2. Computer Science
  3. this assignment asks you to write bash shell scripts to...

Question: this assignment asks you to write bash shell scripts to...

Question details

This assignment asks you to write bash shell scripts to compute matrix operations matrix dims [MATRIX dims should print the dimensions of the matrix as the number of rows, followed by a space, then the number of columns . Here is a brief example of what the output should look like. S cat m1 S cat m2 1 2 S./matrix dims m1 2 4 S cat m2./matrix dims 4 2 matrix dims [MATRIx Prints error message to stderr, nothing to stdout and return value! 0 if: . Argument count is greater than 1 (e.g. matrix dims ml m2) . Argument count is 1 but the file named by argument 1 is not readable (e.g. matrix dims no_such_file) Otherwise, prints ROWS COLS (Space separated!) to stdout, nothing to stderr, and returns 0

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution