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

The clinical self-evaluation allow students to reflect upon their own nursing practice utilizing the nursing program’s core competencies to identify

The clinical self-evaluation allow students to reflect upon their own nursing practice utilizing the nursing program’s core competencies to identify strengths and opportunities for improvement.  Complete both ‘beginning of rotation’ columns at the beginning of the course. Copy and paste this document in the journal area by the assigned due date.

Operational Excellence Week 2 Assignmentinformation

Operational Excellence Week 2 Assignment information Systems for Business and Beyond Questions · Chapter 2 – study questions 1-10, Exercise 2      Information Technology and Organizational Learning Questions · Chapter 2 – Note why the IT organizational structure is an important concept to understand.  Also, note the role of

Week 2 Pharmacology During the week #2 discussion, we will develop the Signature Assignment by responding to the following critical questions: o    

Week 2 Pharmacology During the week #2 discussion, we will develop the Signature Assignment by responding to the following critical questions: o     In what ways can APRNs utilize telemedicine platforms and remote monitoring technologies to remotely access patients’ medication adherence, therapeutic responses, and potential adverse effects? How does remote patient monitoring impact

  Creating and delivering effective presentations for adult learners means providing engaging and relevant instruction for the context. When planning

  Creating and delivering effective presentations for adult learners means providing engaging and relevant instruction for the context. When planning effective professional development sessions, facilitators must consider best practices, andragogical principles, and biases held by themselves and their audience. Include the following: Overview of andragogy, including Malcolm Knowles’ five assumptions

Running head: Interview & Interdisciplinary Issue IdentificationInterview and Interdisciplinary Issue IdentificationInterview and

Running head: Interview & Interdisciplinary Issue Identification Interview and Interdisciplinary Issue Identification Interview and Interdisciplinary Issue Identification YOUR NAME _____________ University MONTH DAY, YEAR Interview Summary Summarize your interview in this section. Be sure to relate concise information about: · the health care organization that was discussed in the interview.

Question 1 . Choose 1 terms from the following list and identify and explain the significance of each. Each answer should be roughly 230 words in length

Question 1 . Choose 1 terms from the following list and identify and explain the significance of each. Each answer should be roughly 230 words in length EACH  social scientific method  critical thinking  social structure  social determinants of health  Intersectionality  social constructionism   social systems paradigm Question 2  From the following