Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

bash script for linux (ubuntu) Exercise(s): 1. Construct a command to remove the duplicates lines in a file. 2. Construct a command to rename all

bash script for linux (ubuntu)image text in transcribed

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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

3rd Edition

0760049041, 978-0760049044

More Books

Students also viewed these Databases questions