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

please see atachment a) demonstrates proficiency in setting up an ethnographic research project; b) describes a strategic site for ethnographic

please see atachment a) demonstrates proficiency in setting up an ethnographic research project; b) describes a strategic site for ethnographic research; and c) conducts ethnographic research (via observation only) and presents some preliminary findings. Your paper should utilize sound critical thought, refer to course materials, and be written in APA-format

please see attachment This assignment addresses course learning objective 1 – Identify the various segments of the hospitality industry, along with

please see attachment This assignment addresses course learning objective 1 – Identify the various segments of the hospitality industry, along with institutional learning objectives related to information literacy. For this assignment, you will be preparing an annotated bibliography that lists four different academic sources from the Trefry online library. The

Prepare a slide show presentation (Developing Parent-Teacher Partnerships) that could be used to TRAIN pre-service teachers about the importance of

Prepare a slide show presentation (Developing Parent-Teacher Partnerships) that could be used to TRAIN pre-service teachers about the importance of parent-teacher partnerships and how to form such partnerships.  You should use PowerPoint. 5-8 slides required. Presentation of concepts, definitions and theory from the textbook/resourcesInformation in this section must be typed on slides

1 Applying Library Research Skills Your Name Capella University NHS4000: Developing a Healthcare Perspective Instructor Name Month,

1 Applying Library Research Skills Your Name Capella University NHS4000: Developing a Healthcare Perspective Instructor Name Month, Year 2 Healthcare disparities among individuals from low socio-economic status (SES) have been a persistent issue, requiring attention and intervention from healthcare professionals, especially nurses. This paper aims to provide an overview of