Write a bash shell script that copies all files from your UnixShells to workngDir and analyze…

Write a bash shell script that copies all files from your UnixShells to workngDir and analyze the new directory information such as number of files categorized by file permission and disk usage. MCIS 5013(030) – Unix Operating System Summer I, 2018 Page 2 of 4 Direction 1. Make sure you are current directory on bash by issuing command echo $0 2. Write a bash shell script name “DirAnalyze+your 4 digit ID” #File name should be DirAnalyze+1864 3. The script need to be started with a line #! /bin/bash 4. Create a file named DirAnalyze_id.sh . put your name, section name and simple description for the assignment . print Title and date at the same line use echo command . Print Title and date at the same line use echo command and cut command << MCIS 5013 Directory Analysis Report >> Date: wed June 20, 2018 Eg. Wed June 20 17:48:15 CDT 2018 to Wed June 20, 2018 a. Display current directory b. Create new directory and copy files

Document Preview:

MCIS 5013(030) – Unix Operating System Summer I, 2018 Project 2- bash script (200 Marks) No Name, ID and section name: 2 point deduction No output is provided: 10 point deduction, Don’t copy other students’ work Objective: Write a bash shell script that copies all files from your UnixShells to workngDir and analyze the new directory information such as number of files categorized by file permission and disk usage. Expected Output << MCIS 5013 – Unix Operating System >> date: wed June 20, 2018 Directory info analysis Report =========================================================================== A. Current Directory: /home/jongyk/UnixShells B. New Directory Created at: /home/jongyk/UnixShells/9123 C. File information 0) Total Number of files: 22 1) Directory files: 0 2) Plain text files: 10 3) Files have Read only permission: 3 4) Files have Read and Write permissions: 4 5) Files have Execute only permissions: 2 6) File have length of zero: 0 7) Others: 0 files D. Disk usage of this di: 50 Kb E. Biggest 5 files in directory: Lab3.class , Lab4.java, Lab5.class ========================================================================== Reported by: Jongyk Page 1 of 4MCIS 5013(030) – Unix Operating System Summer I, 2018 Direction 1. Make sure you are current directory on bash by issuing command echo $0 2. Write a bash shell script name “DirAnalyze+your 4 digit ID” #File name should be DirAnalyze+1864 3. The script need to be started with a line #! /bin/bash 4. Create a file named DirAnalyze_id.sh . put your name, section name and simple description for the assignment . print Title and date at the same line use echo command . Print Title and date at the same line use echo command and cut command << MCIS 5013 Directory Analysis Report…

Attachments:

"Is this question part of your assignment? We can help"

ORDER NOW