Question: . A file display (named filedisp ) program filedisp receives text (multiple lines) from standard input, accepts one of the three options: -d, -f and
. A file display (named filedisp) program
filedisp receives text (multiple lines) from standard input, accepts one of the three options: -d, -f and -b, and displays one line from the input accordingly to the given option.
If the option was -d it displays the input line that has the word 'directories'.
If the option was -f it displays the input line that has the word 'files'.
If the option was -b it displays the input line that has the word 'bytes'.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
