Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use cat, paste, cut commands and stdin, stdout, or stderr redirection as needed to answer the following questions. 1. Create a file called fullNames.txt using

Use cat, paste, cut commands and stdin, stdout, or stderr redirection as needed to answer the following questions.

1. Create a file called fullNames.txt using vi and have the following content in the file -- Please pay attention to put space character between the first and last name for each person below. (hint for the upcoming questions: the default delimeter for the paste and cut commands is TAB character not space character). john smith alice wonderland sam blue 2. Write a unix command to print first name of each person in the fullNames.txt file to the screen. 3. Write a unix command to create a file called firstNames.txt from the fullNames.txt file. This file should have the first name of each person per line. 4. Write a unix command to print last name of each person in the fullNames.txt file to the screen 5. Write a unix command to create a file called lastNames.txt from the fullNames.txt file. This file should have the last name of each person per line. 6. Use a unix command to print the combined firstNames.txt and lastNames.txt files to the screen in a way that each line has the first and las name of one person delimited using : symbol. For instance, the first line to appear on the screen should be john:smith 7. Modify your unix command in step 6 so that the lines are written to another file called newFullNames.txt rather than on the screen. 8. Write a unix command to append the line mike:brown to the end of your newFullNames.txt file

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

Database Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions

Question

14-1. What is buzz? How do marketers practice buzz building?

Answered: 1 week ago

Question

4 The rebuttals to common arguments for protectionism.

Answered: 1 week ago

Question

Evaluate three pros and three cons of e-prescribing

Answered: 1 week ago

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago