Implement some simple UNIX tools :Bash shell script
- Country :
Australia
Part 1-
Problem Statement
You are required to implement some simple UNIX tools for your own use.
Firstly, create a directory in which to keep them. It should be called "bin" and be in your home directory.
Create the following new commands: You should be able to implement each command in between 10 and 50 lines of code including comments. The more adventurous who wish to exceed the 50 lines limit in their commands should check with your tutor first.
chmx- a command that takes filenames as its arguments and makes those fileexecutable to all users.
Ishead- list the first few lines of every file in a directory specified by the argument. This command should also allow options to either list the first n lines or the last n lines of the files.
Example command: Ishead -head 10 documents would list the first ten lines in every file in the documents directory.
del- a version of rm which only copies files to a special "waste" directory. You will need to create this special directory.
wastesize- which reports the number of files in the waste bin.
emptywaste- which deletes for good everything in your waste bin.
listwaste-lists the names of all the files in your waste bin and their size in bytes.
listwaste-lists the names of all the files in your waste bin and their size in bytes.
Write a Bash shell script, called digitalDay.bash, that takes a single numeric argument and prints out the day of the week based on the formula, number modulo 7. The table below indicates typical results for positive integers.
A basic script should accept a single argument or prompt for a single value. There will be more marks for more adventurous scripts accepting multiple arguments or values and running continuously until the control or termination flag is encountered.
Basic:The script must accept all positive integers and reject/ignore other types of input.
Adventurous
- The script must issue usage help statement if the argument is missing, optionally a -help option to the command.
- The script must run in a loop until a control input (-1) is entered and output the number of valid and invalid inputs entered per run.
- The script must handle non-integer input, floating point numbers, text and negative integers other than the control value.
Get your Implement some simple UNIX tools assignment solved by our linux Experts from Exam Question Bank . Our Assignment Writing Experts are efficient to provide a fresh solution to all question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing Style. Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered.
You may continue to expect the same or even better quality with the used and new assignment solution files respectively. Theres one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turn tin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.