Question
LINUX PROGRAMMING 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
LINUX PROGRAMMING
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. You may use following template for filename:
test_04022020_142530.log (for February 20, 2020 14:25:30)
Loop though 1-5000 and write the numbers (one per line) to log file with the time stamp in following format:
04-20-2020 14:25:30 -
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 based on the number provided by user.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started