Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

Use vi to create a data file with records. You will then sort the data.

* Log in to the Linux system as a user, and then open a Terminal emulation window.

* Type mkdir Project2-9, and then press Enter.

* Type cd Project2-9, and then press Enter.

* Type vi infile.dat, and then press Enter. The vi editor opens.

* To insert text, press Esc, and then Type i.

* Enter the following text and make sure you press Enter at the end of each line. (Each row is considered an employee record with colons separating the fields. The first field is the employee number. The second field is the employee name, and the third field is the employee salary.)

* To save the file, press Esc, and then type the colon symbol (:). The cursor moves to the bottom of the screen with a colon to its left.

* To write the file, type wq!, and then press Enter. The prompt returns.

* Sort the data in ascending order by typing sort infile.dat, press

* Enter, and then record the output.

* Sort the data in descending order by typing sort -r infile.dat, press * Enter, and then record the output.

* Sort the data in descending order and redirect the output to another file by typing sort -r infile.dat > reverse_sort.dat, and then press Enter.

* Sort the data in ascending order, redirect the output to another file, and then record the command you used.

* Close your window, and then log out.

Project 2-10

You will use the files created in Project 2-10. Project 2-10 requires completion of Project 2-9.

* Log in to the Linux system as a user, and then open a Terminal emulation window.

* Type cd Project2-9, and then press Enter.

* Cut the first field.

* Cut the second field.

* Cut the third field.

* Cut both the first and third field and redirect the output to a new file named salary.dat.

* Make a duplicate of infile.dat by typing cp infile.dat infile2.dat, and then press Enter.

* Open the file named infile2.dat, and add five additional records. Add a sixth record that has your name. Also, create a fictitious employee number and employee salary to complete your record.

* Type diff infile.dat infile2.dat, and then press Enter. Record the output.

* Close your window, and then log out.

Attachment:- ff.png

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M91618783
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in DBMS

Tableau is business intelligence software that helps people

Tableau is business intelligence software that helps people see and understand their data. Fast Analytics Connect and visualize your data in minutes. Tableau is 10 to 100x faster than existing solutions. Ease of Use Anyo ...

Sql transactions exercisesconsider table itemnameprice

SQL Transactions Exercises Consider table Item(name,price) where name is a key, and the following two concurrent transactions. T1: Begin Transaction; Update Item Set price = 2*price Where name = 'pencil'; Insert Into Ite ...

Relational database design a given the following business

Relational Database Design A) Given the following business rules, identify entity types, attributes (at least two attributes for each entity, including the primary key) and relationships, and then draw an Entity-Relation ...

Q1 given the following file for assignment workercom

Q1. Given the following file for assignment worker.com, identify data anomalies that must be removed before data can be loaded in data warehouse. Worker_assignment ← -----------------on course web site File is available ...

Question 1 describe 1nf 2nf 3nf2 explain why 4nf is a

Question: 1: Describe 1NF, 2NF, 3NF. 2: Explain why 4NF is a normal form more desirable than BCNF. The response must be typed, single spaced, must be in times new roman font (size 12) and must follow the APA format.

Question talk about the importance of pulling data from

Question : Talk about the importance of pulling data from worksheets into a single sheet also the ways excel could be a solution to a complex challenge. The response must be typed, single spaced, must be in times new rom ...

Database design and development assignment -assessment task

Database Design and Development Assignment - Assessment task - 1. Normalization a) Map the ERD, from the sample solution, into a set of relations in at least Third Normal Form (3NF). You must ensure that your relations m ...

Database design amp development assignment -assignment

Database Design & Development Assignment - Assignment title - Design and Implement a Relational Database for a local Print and Ink Refill Business. Learning Outcome - Use an appropriate design tool to design a relational ...

Stored procedure please create the following stored

Stored procedure. Please create the following stored routines using CPS3740_2017S database using the tables in dreamhome database. xxxx is your email id 1) Implement a stored procedure p3Q21_xxxx to display the Branch ci ...

Students will select a situation or problem from their

Students will select a situation or problem from their company as a course project that can be solved using a database system. Using MS Access, or MS SQL Server Express, students will create a relational database model o ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As