Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Linux YOUR Work must be tested en vour machine il aptop) Before PAsS OF the Proiect. Cour seript should work on vour own created files

Linux
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
YOUR Work must be tested en vour machine il aptop) Before PAsS OF the Proiect. Cour seript should work on vour own created files and directories if they are needed) Writwan Mraker coed afternoon Moand sject Diviterin. 5) hier all ewpy awownin. nile 4. Clenge Pronikien fir an Tito b) Cemper alie 6 Dder Buptiend filo Repar: b) Briet all ewpy pho. Clarification of AlL. Scripes 1. Directoriest * Onerie andey for al a am cineit Matiog have Sumpin pirma dinatiny Gimple a) Ainationpy diwariace Clarification of ALL. Scriots 1. Directories: a) Cinebe a Dinnkery far Alf eiers Brive the frillevier Nor: Gempens A inhelir biven diwiny. a) Friat aif eavy airevinurs. wewnen there and ait. Hren ofelvate at zoets chey dir fleterimyiarstent 2. Files: B) I'ampener filese et. Dnierer al defiliat Mirs 2. Files: a) Ceepore jlye: a) Dular di dusinate filin Sampie; (Asuime that the midters Elle in dirnetery airl lme anster eepy inside directery dir2) Aelote theplic atien art dirt. nement be inder int ext. 3. Report: Year arrye ahabld pries an amer if - Tle fire mepewrer di nat e ope ef nusle fily Sarepler: + \&eountwere banpeter cengald Cumpial Canpiat The ward -Competere appeard o tlans in the foltowisg pales with the cortedpoiding 1 ines iller any nume, Ganyalt: of countriles conpald conplali Mello-java Tentre finaluhtel. A. F... At - vumber of files that have the same mame inside different dirncteries 4 of 4 es script that aecopts toe directaries as argumembs she script shewld divplay all files with d priat an errer if: t argument is nat a type ef dectories - the mumber of arguments is not equal to then. Sample: I fountriles Comp311 Comp2311 The following files appear in the directories "Comp311" and "Conp2311" Hello.java Test, c Pinal,html c) Priat all emper files. Write a shell seript printEmpty Files that will priat all empty file names. The command printEmptyfiles file showld priat all eampty files inside a given set of directaries. Niater ahe apton -s for cherling she file stse (if / - K file /) ar du command cammot be whot in writing this seriget. Sample priatEmptyFiles dir1 dir2 dir3 ...dir. (number of argaments are up to 9) The script should print an errot message to stder and exit if there is no argument of the argument is not a directory. 1. Exir Serijt Allows the user to stap ranning the script and exir with the messege "Gaodbye" IF ANYOVE LSE AVY COMMAVD OR SYNTAX NOT IS NOT MENTIONED IN THE LAE M.AVUAL, THEN THIS SCRIPT HHL, BE NOTGR ADED (ZEROGRADEZ. G ST YOUCA.VOVL. USE OPERATIONS LIKE (A \&, ll, if if you need it. Operation Explanation 64 The logical AND II the logical oR I The logical nor (depending on the exit statas) Example: if If (\$1 -1t 10) 66($2gt2)11 then echo "Approved" echo "Quit!" exit 0 fi YOUR Work must be tested en vour machine il aptop) Before PAsS OF the Proiect. Cour seript should work on vour own created files and directories if they are needed) Writwan Mraker coed afternoon Moand sject Diviterin. 5) hier all ewpy awownin. nile 4. Clenge Pronikien fir an Tito b) Cemper alie 6 Dder Buptiend filo Repar: b) Briet all ewpy pho. Clarification of AlL. Scripes 1. Directoriest * Onerie andey for al a am cineit Matiog have Sumpin pirma dinatiny Gimple a) Ainationpy diwariace Clarification of ALL. Scriots 1. Directories: a) Cinebe a Dinnkery far Alf eiers Brive the frillevier Nor: Gempens A inhelir biven diwiny. a) Friat aif eavy airevinurs. wewnen there and ait. Hren ofelvate at zoets chey dir fleterimyiarstent 2. Files: B) I'ampener filese et. Dnierer al defiliat Mirs 2. Files: a) Ceepore jlye: a) Dular di dusinate filin Sampie; (Asuime that the midters Elle in dirnetery airl lme anster eepy inside directery dir2) Aelote theplic atien art dirt. nement be inder int ext. 3. Report: Year arrye ahabld pries an amer if - Tle fire mepewrer di nat e ope ef nusle fily Sarepler: + \&eountwere banpeter cengald Cumpial Canpiat The ward -Competere appeard o tlans in the foltowisg pales with the cortedpoiding 1 ines iller any nume, Ganyalt: of countriles conpald conplali Mello-java Tentre finaluhtel. A. F... At - vumber of files that have the same mame inside different dirncteries 4 of 4 es script that aecopts toe directaries as argumembs she script shewld divplay all files with d priat an errer if: t argument is nat a type ef dectories - the mumber of arguments is not equal to then. Sample: I fountriles Comp311 Comp2311 The following files appear in the directories "Comp311" and "Conp2311" Hello.java Test, c Pinal,html c) Priat all emper files. Write a shell seript printEmpty Files that will priat all empty file names. The command printEmptyfiles file showld priat all eampty files inside a given set of directaries. Niater ahe apton -s for cherling she file stse (if / - K file /) ar du command cammot be whot in writing this seriget. Sample priatEmptyFiles dir1 dir2 dir3 ...dir. (number of argaments are up to 9) The script should print an errot message to stder and exit if there is no argument of the argument is not a directory. 1. Exir Serijt Allows the user to stap ranning the script and exir with the messege "Gaodbye" IF ANYOVE LSE AVY COMMAVD OR SYNTAX NOT IS NOT MENTIONED IN THE LAE M.AVUAL, THEN THIS SCRIPT HHL, BE NOTGR ADED (ZEROGRADEZ. G ST YOUCA.VOVL. USE OPERATIONS LIKE (A \&, ll, if if you need it. Operation Explanation 64 The logical AND II the logical oR I The logical nor (depending on the exit statas) Example: if If (\$1 -1t 10) 66($2gt2)11 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_2

Step: 3

blur-text-image_3

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

Murach's SQL Server 2012 For Developers

Authors: Bryan Syverson, Joel Murach, Mike Murach

1st Edition

1890774693, 9781890774691

More Books

Students also viewed these Databases questions