Write unix shell script to check file in current directory

Assignment Help Programming Languages
Reference no: EM1366868

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.

Reference no: EM1366868

Questions Cloud

Explain daytime processing load : Assume daytime processing load consists of 60% CPU activityand 40% disk activity. Your customers are complaining that the system is slow. Which would you select to yield best performance improvement for least amount of money?
Applied math on estimating price elasticity of demand : The marketing team for a restaurant wants to estimate the price elasticity of demand coefficient for its steak dinner. It priced its dinner at different price points in local restaurants to see how many would be sold at different prices.
Health care organization-efficient access-sharing data : Explain in detail what systems or methods your health care organization employs to give efficient access and sharing of essential information.
Demand-quantity demanded-supply : Explain what happens to price and quantity of milk when the following events take place: For each and every event, specify how it effects either demand, quantity demanded, supply, or quantity demanded. It is also important to demonstrate how the ch..
Write unix shell script to check file in current directory : Write 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 current directory.
Determine best investment based on present value : Determine which of the following would be the best investment based on net present value? Suppose  an annual discount rate of 16 percent.
Health care laws or regulations : What are ways that health care laws or regulations influencing your health care organization or a healthcare organization with which you arewell known?
Determining market situation : Describe a market situation in which the operating company faces economic difficulties and need to cut costs. What cost cutting strategies may the operating company employ to remain profitable?
Supply and demand schedule for pizza : Graph the supply and demand schedule for pizza using $5 through $15 as the value of p. In equilibrium, how many pizzas would be sold at what price?

Reviews

Write a Review

Programming Languages Questions & Answers

  Function to count number of times the given number occured

Write a main function to input 20 integers in the range of 1 to 6. Write a function to count the number of times the numbers 2 and 5 occur. The function should declare static variables count2 and count5.

  Designing menu for administrator to simulate transmissions

Design a menu which permits administrator to simulate transmissions of information by manually typing in login or logoff data.

  Design application to allow user to input a price

Design an application that allows a user to input a price until an appropriate sentinel value is entered.Output is the price of each item on each day,one through seven.

  Program using ten radio buttons to show five states

It is program using 10 Radio Buttons to show 5 States and 5 Capitals to user's interface. Also, there is text box to print "Correct" and "Incorrect" when Sate and the Capital is a correct match.

  Write implementation of counter class

Write the implementation (.cpp file) of the Counter class. Here is the full specification of the class: A data member counter of type int.

  Writing code in client program to enter score

Write down code in a client program to perform the following: prompt user to enter score and set score data member for player1.

  Explaining box properties available in css

Browse the Web and choose a site that could benefit from box properties available in CSS. Make a screen capture of the page and indicate how you would change border and spacing properties.

  Program to keep track of the seat availability of flight

A small airline company needs a program to keep track of the seat availability of its flights. Design the structure type FLIGHT to store a four-digit flight number.

  Program to read employee information into array of objects

Consider a program that will read employee information into an array of objects, sort the array by employee identification number, write out the sorted array.

  Create method to calculate value of product purchase

In addition, the receipt should display the value of the entire purchases. Create a method to calculate the value of the product purchases.

  Write a trigger for total percentage of all appointments

Write a trigger on Works department to ensure the following requirement; the total percentage of all appointments for an employee must be fewer than 100%.

  Program-function definition which has three int arguments

Your program will include a function definition that has three int arguments consisting of the whole dollar portion of the price and the two integers that make up the fraction part.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd