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

  Draw a erd model a manufacturing company

Draw a ERD model A manufacturing company has several assembly plants in different cities. Each plant produces one product which requires certain parts in its assembly.

  Two-level memory cache hierarchy

Explain how you would pipeline the four following pairs of statements.

  Program a robot to run mile-long steeplechase

Program a robot to run mile-long steeplechase where steeples are made from beepers instead of wall segmesnts. the robot must jumb the steeples in this race by picking the beepers that make up the steeples.

  Display policy data after revisions have made

The day is not correct for the month (that is, between 1 and 31 for January, 1 and 29 for February, and so on), then set the month, day, and year to 0. Display the policy data after any revisions have been made.

  Ways to ensure that website is easy to navigate

A good practice would be to spread the content out among several pages. What are some ways to ensure that your website is easy to navigate?

  Write program to enter numeric values-arithmetic operator

Write a program that lets the user enter 2 numeric values, and an arithmetic operator: +, -, * and /. Write a switch statement that displays the result.

  Develop unix shell script to input number of hours

Develop a Unix shell script to input number of hours worked and pay rate and calculate the total pay, then the social security amount (assume 5%), then the net pay.

  Write program to compute diameter in centimeters

Write a program to compute the diameter in centimeters of a steel rod, an aluminum rod, and a copper rod, which can withstand a particular compression load.

  Write software application development coding practices

Use the Library and other resources to write a software application development coding practices guide. Your guide should include recommendations

  Program to calculate integer part of quotient

Calculate the integer part of the quotient when integer a is divided by integer. Calculate the integer remainder when integer a is divided by integer b

  Program for class quiz to implement measurable interface

State a class Quiz to implement Measurable interface. A quiz has a score and a letter grade (such as B+).

  Create a java application for employee class

Create a Java application, that support the following:- Create an Employee class, which holds following information: Employee First Name, Employee Last Name.

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