Question: write code in c++ Here Filecnt is a programm which display the number of directories in given directory number of files in given directory and

write code in c++

Here Filecnt is a programm which display the number of directories in given directory number of files in given directory and number of bytes occupied by all file in given directory.

write code in c++ Here Filecnt is a programm which display the

2. A file display (named filedisp) program WA 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 ord 'bytes'. Note that since filedisp is simply used to illustrate the use of 'pipes' and designed to be used together with filecnt no input validation nor edgy cases consideration is required. If an invalid option was given or the input does not have the searched word, warning messages should be displayed by the program to notify the user. test your programs using the following commands: filecnt /usr/share | filedisp-d Vyun VA WUNAV filecnt /usr/share , filedisp - f VENANMUNW NALA

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!