Write shell script for linux os and also produce 2 output files  for the files inside the zip file Include script # inside commentary lines in each

Write shell script for linux os and also produce 2 output files  for the files inside the zip file

Include script # inside commentary lines in each file.

1. Create a shell script that performs a count on three files in the Files folder

• Assign the filenames F95.doc, P22.txt and U52.csv to an array.

• Use a for loop whose variable is assigned to each filename in sequence in the array to do the following:

• Find how many words are in the file and show it to the screen.

• Write the count and filename to an output file.

2. Create a shell script that copies all files that begin with specific letters to a new folder, then counts how many files were copied:

• Create a new folder for the copied files.

• Assign the letters J, M and Q to an array.

• Use a for loop whose variable is assigned to each letter in sequence in the array to do the following:

• Copy all files that begin with the letter in the Files folder to the new folder.

• Echo the letter to the screen.

• Find and state how many files were copied.

• Write the letter and the count to an output file.

• Find the total number of files copied. Show this on the screen and send it to the output file. 

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

NCL Labs submission must be on the webportalOpen Source Intelligence  8Challenges10 Questions Cryptography  8 Challenges14 Questions  Password

NCL Labs submission must be on the webportal Open Source Intelligence  8Challenges10 Questions Cryptography  8 Challenges14 Questions  Password Cracking 7 Challenges10questions Forensics  6 Challenges10Questions Log Analysis 8 Challenges10 Questions Network Traffic Analysis 8 Challenges15Questions Scanning & Reconnaissance  3 challenges 10questions Web Application Exploitation  5 Challenges10 Questions Wireless Access Exploitation  

Assessment 3: Programming Project and Report  Due date:  Week 9  Group/individual:  Individual Word count/Time provided:  Report 1000 words + code (equiv.

Assessment 3: Programming Project and Report  Due date:  Week 9  Group/individual:  Individual Word count/Time provided:  Report 1000 words + code (equiv. 2500 words)  Weighting:  40%  Unit Learning Outcomes:  ULO1, ULO3 Assessment 3 Detail  Python Programming Assessment: Restaurant Menu Management System  This assessment evaluates your ability to utilise Python’s data structures

Machine learning questions. 4 questions. look at attached  1. Please construct a new dataset by either adding two independent variables or removing two

Machine learning questions. 4 questions. look at attached  1. Please construct a new dataset by either adding two independent variables or removing two independent variables from finalsample.dta dataset. If you choose to add two independent variables, you could add any two independent variables that you think help explain stock returns. If you choose to remove two independent variables, you