Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

linux YOCR Wiork must be tested an vour machine it aptop) Hefore PAsS. OF the Preject. myprocessing that when pessited, dipplays ithe folliwing fiur debices:

linux
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
YOCR Wiork must be tested an vour machine it aptop) Hefore PAsS. OF the Preject. myprocessing that when pessited, dipplays ithe folliwing fiur debices: Your script should work on yuur own created files and directaries if they are needed) gedeame Mrisest. cood aftarnese muats siest 5) Cines o Doviner fer at mat 3) hial al inpy dimarios fille 10 Conneres an npan Eile Paner Clarificution of All. Scriots 1. Directaries: at Creroneninder at nat vi Sempit: 7initin andt, Clarification of Alf Sicrimes L. Pirentaries: Sampir: reatral fiven imenery if tay 4) Ciner at ange diresines stelier anil rat 2. Fillest 3y frepare fins. of. Avina in ilmelliov fint. 2. Fres ay Cempen Awi Saanle! Aebebleplination dert dird newepe l at atw ant inat. 2. Renoart: earreapendiay I3mes ite aurien Menpler of eosetriles cunsait comptisis melib. java Testee rinul ihtal 1. C.....A. - uamber of files that have the same name inside different direteries. 4 of 4 'os serijt that accepts two directories as arguments: she script should display all files wish Af primt an error if: t argument is not a bpe of directories - the mumber of argumens is nat cyual to twa. Sample: . / countriles Comp311 Comp2311 The following files appear in the directoriea "Comp311" and "Comp2311" Hello.java Test, c Final,html c) Prims all cmpoy files. Write a shell script priatEmpty Files that will print all empty file names. The command printEmptyFiles file should print all empoy files inside a given set of directarics. Nate: ahe optian -s for checking the file sise (if /-s file l) ar dar command cumnat be wised it writing thes script. Sample printEmptyFiles dir1 dir2 dir 3 ...dir. (esmber of arkuments are ap to 9 ) The seript should print an crror message to stder and exit if there is no argument or the argament is not a directory. 1. Exir Seript ANows the user to stop running the seript and exit with the message -Goodbye" IF ANYONE LSE AVY COMMAND OR SYNTAX NOT IS NOT MENTIONED IN THE LAB MANUAL, THEN THIS SCRIPT HTLL BE VOT GRADED (ZERO GRADE). JEST YOU CANONLY USE OPERATIONS LIKE (AA, H.? if you need it. Operation Explanation 6 The logical AND II The logical oR I The logieal Not (depending on the exit atatus) Example: if [I (\$1 -1t 10) 66 (\$2 -gt 2) I] then echo "Approved" echo "Quit!" exit 0 fi YOCR Wiork must be tested an vour machine it aptop) Hefore PAsS. OF the Preject. myprocessing that when pessited, dipplays ithe folliwing fiur debices: Your script should work on yuur own created files and directaries if they are needed) gedeame Mrisest. cood aftarnese muats siest 5) Cines o Doviner fer at mat 3) hial al inpy dimarios fille 10 Conneres an npan Eile Paner Clarificution of All. Scriots 1. Directaries: at Creroneninder at nat vi Sempit: 7initin andt, Clarification of Alf Sicrimes L. Pirentaries: Sampir: reatral fiven imenery if tay 4) Ciner at ange diresines stelier anil rat 2. Fillest 3y frepare fins. of. Avina in ilmelliov fint. 2. Fres ay Cempen Awi Saanle! Aebebleplination dert dird newepe l at atw ant inat. 2. Renoart: earreapendiay I3mes ite aurien Menpler of eosetriles cunsait comptisis melib. java Testee rinul ihtal 1. C.....A. - uamber of files that have the same name inside different direteries. 4 of 4 'os serijt that accepts two directories as arguments: she script should display all files wish Af primt an error if: t argument is not a bpe of directories - the mumber of argumens is nat cyual to twa. Sample: . / countriles Comp311 Comp2311 The following files appear in the directoriea "Comp311" and "Comp2311" Hello.java Test, c Final,html c) Prims all cmpoy files. Write a shell script priatEmpty Files that will print all empty file names. The command printEmptyFiles file should print all empoy files inside a given set of directarics. Nate: ahe optian -s for checking the file sise (if /-s file l) ar dar command cumnat be wised it writing thes script. Sample printEmptyFiles dir1 dir2 dir 3 ...dir. (esmber of arkuments are ap to 9 ) The seript should print an crror message to stder and exit if there is no argument or the argament is not a directory. 1. Exir Seript ANows the user to stop running the seript and exit with the message -Goodbye" IF ANYONE LSE AVY COMMAND OR SYNTAX NOT IS NOT MENTIONED IN THE LAB MANUAL, THEN THIS SCRIPT HTLL BE VOT GRADED (ZERO GRADE). JEST YOU CANONLY USE OPERATIONS LIKE (AA, H.? if you need it. Operation Explanation 6 The logical AND II The logical oR I The logieal Not (depending on the exit atatus) Example: if [I (\$1 -1t 10) 66 (\$2 -gt 2) I] then echo "Approved" echo "Quit!" exit 0 fi

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Entity Alignment Concepts Recent Advances And Novel Approaches

Authors: Xiang Zhao ,Weixin Zeng ,Jiuyang Tang

1st Edition

9819942527, 978-9819942527

More Books

Students also viewed these Databases questions

Question

How does clothing function in an organization?

Answered: 1 week ago