Tildelt

Quick Bash Script

1. Write a script called “[url removed, login to view]” that will do the following:

(a) Ask the user to enter their title via a menu, e.g., Mr, Mrs, Ms, Dr, etc.

(b) Ask the user’s full name (this should be entered on a single line, i.e., prompt for their full name).

(c) Greet the user (using “Good morning”, “Good afternoon”, or “Good evening” depending on the time of day) by their title and surname.

(d) Ask for a username and print the name and home directory path associated with that username.

(e) Ask for a username and show the processes associated with that username.

(f) Tell the user the day of the week, and the current time in non-military time. The output should resemble the following:

The day of the week is Tuesday and the current time is 09:20:56 PM.

(g) Print the value of the TERM, PATH, and HOME variables.

(h) Print the disk usage of the system in human readable form.

2. Write a script called “[url removed, login to view]” that will do the following:

(a) Prompt the user for a number.

(b) Prompt the user for the operation they would like to perform, either add, subtract, multiply or divide.

(c) Prompt the user for a number.

(d) Prompt the user for the operation they would like to perform, either add, subtract, multiply, divide or equals.

(e) Display the result of the selected operation. The script should then exit or continue from step (c) if required.

3. Create a script (or scripts) that carries out the following two operations:

(a) Asks for a name, phone number, and date of birth and amend these details to a comma separated value file called “[url removed, login to view]”.

(b) Sorts “[url removed, login to view]” by date of birth. The newly sorted file should then be displayed (suitably formatted). The output should include a calculation of how old each person is based on today’s date, and the number of entries in the file.

Færdigheder: Linux, Shell Script, UNIX

Se mere: tuesday-morning, quick sorts, create shell script, continue line in c, bash directory script, shell bash, linux shell scripts, in linux shell script, bash shell scripts, bash script directory, bash file, bash 0, shell script or, shell scripts, mrs, linux bash script, bash scripts, bash script, create shell script linux, menu csv file, shell script csv, write linux script, shell add file, write linux shell, linux bash shell

Om arbejdsgiveren:
( 0 bedømmelser ) Broadstairs, United Kingdom

Projekt-ID: #4111005

1 freelancer is bidding on average $200 for this job

mainienterprises

Hoping to work with you.

$200 USD in 20 dage
(0 bedømmelser)
0.0