Question: This Assignment is based on Bash Scripting excluding exercises 1 and 2. 1 and 2 are commands that need to be constructed in a text

 This Assignment is based on Bash Scripting excluding exercises 1 and

This Assignment is based on Bash Scripting excluding exercises 1 and 2.

1 and 2 are commands that need to be constructed in a text file

3-6 are scripts using vi text editor

Please provide the bash command codes with screenshots.

Thank you!!!

Section 1 Objective: More practice of Unix shell scripting Equipment: 1. Computer with a Unix Shell or a Shell emulator Notes: 1. For this section follow the file naming convention given below: FirstName-LastName>-lab3-sec1-exer number sh Exercise(s): 1. Construct a command to remove the duplicates lines in a file. 2. Construct a command to rename all text files(.txt) in a directory 3. Write a script to determine a number is even or odd. The number will be passed as an argument to the script. 4. Write a script to create a log file (log) based on current date & time. Loop though 1-5000 and write the numbers (one per line) to log file. 5. Write a script that creates an archive (.tar.gz) of log files created before a certain date & time and then delete log files. 6. Write a script that uses if and for statements to create a diamond pattern on screen as shown below) based on the number provided by user. Enter Number between (5 to 9) : 6

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!