I gang

Finish a Unix Shell script

The script I wrote for a Project is below I need someone to add the right code.

Prompt the user using tput command to read the information. tput will show the prompt (i.e "Enter first name: ") at the certain row and column. Use 3 tputs, one for each prompt.

Sort "student.txt" file by the last name and display it on the screen.

Below is the Shell script the tput commands will need to be added to.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE="student.txt"

if test -f $FILE # use -f to see if the filename exist.

#You also can use other options like -r (read) or -w (write)

then

rm $FILE

fi

count=1 # Initialize counter to start from 1

while (( $count < 6 )) # Is count less than 6? If it is continue going inside the loop

# to read more student's data

do

echo "Please enter first name: \c"

read fname

echo "Please enter last name: \c"

read lname

echo "Please enter grade (0-100): \c"

read grade

(( count=count+1 )) # Add one to the counter

echo "$fname $lname $grade" >> [url removed, login to view]

done

cat [url removed, login to view]

exit 0

Færdigheder: UNIX

Se mere: finish shell script, shell script finish, finish unix, unix finish, unix finish screen, show script finish, shell script or, unix C, shell script, Rm, finish a project, shell unix, shell add file, write test script, write script file, student grade, grade student, unix project, script read, need someone finish project, shell column, unix commands, unix shell script read, shell sort, echo script

Om arbejdsgiveren:
( 0 bedømmelser ) Goose Creek, United States

Projekt-ID: #973679

8 freelancere byder i gennemsnit $46 for dette job

AlexanderShulc

I can do it for you in couple of hours.

$30 USD på 1 dag
(1 bedømmelse)
4.2
gasparch

Please see PM

$55 USD på 1 dag
(5 bedømmelser)
3.0
lispnik

Please, see PM.

$30 USD på 1 dag
(1 bedømmelse)
2.1
rednasy

I can do it.

$50 USD in 0 dage
(0 bedømmelser)
0.0
msuero

It's seen to be a probe. I can make you that in hours. Best Regards.

$110 USD på 1 dag
(0 bedømmelser)
0.0
kadukmm

I can do this

$30 USD in 0 dage
(0 bedømmelser)
0.0
xenomuta

I have already done this requirement as a practice, as It is pretty easy and basic shell script. Please, consider my bid.

$30 USD in 0 dage
(0 bedømmelser)
0.0
cycotr0n

I can get this done in an hour. Very experienced in shell scripting and UNIX/Linux system administration.

$30 USD på 1 dag
(0 bedømmelser)
0.0