Purpose: Write a Unix shell script (one program) called Project1_lastname (your lastname).
# This script will do the following tasks:
# Using "if" statement checks for a file called "student.txt" in the current directory.
# Removes (deletes) the file if it exist. This file will collect last name, first name, and grade for 5 students.
# Use a while loop to get the information (last name, first name, and grade) for 5 students.
# Grades should be 0-100. Use three different variable names (fname, lname, and grade) to read the data from the keyboard.
# Store the data read from the keyboard in a file called "student.txt".
# After reading all the data for 5 students, display contents of student.txt file on the monitor.
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.
At least 3 tput commands. One tput for each prompt. Use tput command to display the prompts in certain rows and columns.
- Sort student.txt file by last name (Second field).
- Display the sorted information on the screen. First name, last name, and grade for the 5 students.