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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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