Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the answer to question number 3, in project 3-10? ***INFORAMTION FOR REFERENCE*** Project 3-9 You will practice creating simple data files to gain

What is the answer to question number 3, in project 3-10?

***INFORAMTION FOR REFERENCE*** Project 3-9 You will practice creating simple data files to gain initial experience in manipulating those files using UNIX/Linux commands. For this project, you will begin by using the cat command with a redirection operator to practice creating and combining the product1 and product2 files and to further explore the versatility of the redirection operator. The basic files that you will work with in this instance are sample product description files, with each record (line) containing the name of the product (in the first field) and a number to further help identify that product (in the second field). To use the cat command to combine files: 1. Type cat > product1 and press Enter. 2. Type the following text, pressing Enter at the end of each line: Lobby Furniture: 1201 Ballroom Specialties: 1221 Poolside Carts: 1320 Formal Dining Specials: 1340 Reservation Logs: 1410 3. Press Ctrl+d. 4. Now, you can redirect the output of cat to create the product2 file in your home directory. This file also contains two colon-separated fields. 5. After the command prompt, type cat > product2 and press Enter. 6. Type the following text, pressing Enter at the end of each line: Plumbing Supplies: 1423 Office Equipment: 1361 Carpeting Services: 1395 Auto Maintenance: 1544 Pianos and Violins: 1416 7. Press Ctrl+d. 8. Now, you can combine the two files in a master products file. After the command prompt, type cat product1 product2 > product3 and press Enter. Then type cat product3 and press Enter. Record the output you see. Project 3-10 In the next project, you will combine files using a different method, the paste command. Here, you combine the two product files you created to display the records in these files in two separate columns. To use the paste command to combine files: 1. Type clear and press Enter to clear the screen. 2. Type paste product1 product2 and press Enter. This command-line sequence means combine the file called product1 with the file called product2 and show the results on the screen using a separate column for the contents of each file. The columns appear uneven because the records in the files are different lengths and are separated into columns by tab characters. 3. What command will allow you to send the output of the paste command to a file product4 instead of to the screen? ***

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Databases On The Web Learn To Create Web Pages That Interface With Database Engines

Authors: Robert Papaj, Donald Burleson

11th Edition

1576100995, 978-1576100998

More Books

Students also viewed these Databases questions

Question

A typical horizon for long-term planning is 5 years. True or False

Answered: 1 week ago