Write a sed program named ins that copies a file to standard output, chang- ing all occurrences of cat to dog and preceding each modified line with a line that says following line is modified:
What will be an ideal response?
$ cat ins
/cat/ i\
following line is modified:
s/cat/dog/g
Computer Science & Information Technology
You might also like to view...
Given the following declaration: int j;int sum;double sale[10][7]; which of the following correctly finds the sum of the elements of the fifth row of sale?
A. sum = 0; for(j = 0; j < 7; j++) sum = sum + sale[5][j]; B. sum = 0; for(j = 0; j < 7; j++) sum = sum + sale[4][j]; C. sum = 0; for(j = 0; j < 10; j++) sum = sum + sale[5][j]; D. sum = 0; for(j = 0; j < 10; j++) sum = sum + sale[4][j];
Computer Science & Information Technology
Which of the following is not a consideration that affects the outcome of a scanned image?
a. color b. size c. resolution d. copyright
Computer Science & Information Technology