Question

In: Computer Science

using Linux please fill in the blanks : telnos files:

 

using Linux please fill in the blanks :

telnos files:

telnos

telnos2

Hale Elizabeth Bot   744-6892
Harris Thomas Stat 744-7623
Davis Paulette Phys 744-9579
Cross Joseph   MS    744-0320
Holland Tod    A&S   744-8368

Hale Elizabeth Bot   744-6892
Harris Thomas Stat 744-7623
Davis Paulette Phys 744-9579
Holland Tod    A&S   744-8368

telnos3

telnos 4

Hale Elizabeth Bot   744-6892
Harris Thomas Stat 744-7623
Smith John     Comsc 744-4444
Davis Paulette Phys 744-9579
Cross Joseph   MS    744-0320
Holland Tod    A&S   744-8368

Hale Elizabeth Bot   744-6892
Smith John     Comsc 744-4444
Davis Paulette Phys 744-9579
Cross Joseph   MS    744-0320
Holland Tod    A&S   744-8368

The file books contains the following information:

Subject

Book Title

Author's

Last Name

Author's

First Name

Pub.

Date

Price

UNIX:

Introduction to UNIX:

Wrightson:

Kate:

2003:

45.00:

UNIX:

Just Enough UNIX:

Anderson:

Paul:

2003:

39.00:

UNIX:

Bulletproof UNIX:

Gottleber:

Timothy

2002:

48.00:

UNIX:

Learning the Korn Shell:

Rosenblatt:

Bill:

1994:

35.95:

UNIX:

A Student's Guide to UNIX:

Hahn:

Harley:

1993:

24.50:

UNIX:

Unix Shells by Example:

Quigley:

Ellie:

1997:

49.95:

UNIX:

UNIX and Shell Programming:

Forouzan:

Behrouz:

2002:

80.00:

UNIX:

UNIX for Programmers and Users:

Glass:

Graham:

1993:

50.00:

SAS:

SAS Software Solutions:

Miron:

Thomas:

1993:

25.95:

SAS:

The Little SAS Book, A Primer:

Delwiche:

Lora:

1998:

35.00:

SAS:

Painless Windows for SAS Users:

Gilmore:

Jodie:

1999:

40.00:

SAS:

Getting Started with SAS Learning:

Smith:

Ashley:

2003:

99.00:

SAS:

The How to for SAS/GRAPH Software:

Miron:

Thomas:

1995:

45.00:

SAS:

The Output Delivery System:

Haworth:

Lauren:

2001:

48.00:

SAS:

Proc Tabulate by Example:

Haworth:

Lauren:

1999:

42.00:

SAS:

SAS Application Programming:

Dilorio:

Frank:

1991:

35.00:

SAS:

Applied Statistics & SAS Programming:

Cody:

Ronald:

1991:

29.50:

issue the command:

        sort -n -t: +4 books

What is the result? ________________________________________________________________________________________________________________________________________________

Try another sort using the books file. Sort on the price field in reverse. Type in the following:

        sort -nr -t: +5 books

What was the result? _______________________________________________________________________________________________________________________________________________

Type in:

        sort -t: +0 +1 books > newbooks

What does the sorted file look like now?

__________________________________________________________________________________________________________________________________________________________________

. Issue the command:

               grep -n H telnos

What was printed? ________________________________________________________________________________________________________________________________________________________________________________________________________________________

Issue the command:

              grep -ni m telnos

What was printed this time?___________________________________________________________________________________________________________________________________________________________________________________________________________________

Solutions

Expert Solution

Answer 1
*************

Answer 2
***************

-n, --numeric-sort

-r, --reverse order

Answer 3
*************

-t, --field-separator=SEP

ascending order by 0th column then sort 1st column and create a new file for that sorted data and store result

Answer 4
*************

-n H

where ever found the H character gives the line number

Answer 5
*************

-n, --line-number
-i, --ignore case with character m

Thanks


Related Solutions

C++ Fill in the blanks please You are required to fill in the blanks in this...
C++ Fill in the blanks please You are required to fill in the blanks in this program. Consider that: -In main, the variables price and quantity were given the names of p (double) and q (int), respectively. -In the getData function, the parameters associated with the main variables p and q were called pp and pq, respectively. // Prototype: Do not include the names // of the variables in the prototype void getData (FILLTHEBLANK , FILLTHEBLANK); int main () {...
using lunix or C programming to answer this lab please fill in the blanks with the...
using lunix or C programming to answer this lab please fill in the blanks with the answere being highlighted, so i can understand. First, type the following command:             sort employee What is the order that employee is sorted in? ___________________________________________ Give a brief description of how the file is sorted. _____________________________________________________________________________________________________________________________________________________________________________________________________ Now, sort on the field for last name.         sort +1 employee Look at the sorted file. Are all the names sorted in alphabetical order? ______________________ Give a brief description...
please fill in the blanks using c program or lunix with the answers being highlighted 1....
please fill in the blanks using c program or lunix with the answers being highlighted 1. You will now need four files. These are telnos, telnos2, telnos3, telnos4. These files are all short files that contain names, departments, and telephone numbers. This is what they look like. telnos telnos2 Hale Elizabeth Bot   744-6892 Harris Thomas Stat 744-7623 Davis Paulette Phys 744-9579 Cross Joseph   MS    744-0320 Holland Tod    A&S   744-8368 Hale Elizabeth Bot   744-6892 Harris Thomas Stat 744-7623 Davis Paulette Phys...
Linux What is the tar command? a. Can you compress files using tar? Please explain how...
Linux What is the tar command? a. Can you compress files using tar? Please explain how and provide a brief example. b. How do you create a tar file? Please provide an example. c. How do you extract files in a tar format? Please provide an example.
Please fill in the blanks: __________________ - Liabilities = Owner’s Equity. Please express the equation for...
Please fill in the blanks: __________________ - Liabilities = Owner’s Equity. Please express the equation for the Income Statement: ____________________ - ________________ = Net Income. Please express the equation for the Statement of Retained Earnings: BB + or - ______________________ - Dividends +or- = _____________________. Please express the equation for the Balance Sheet: ________________________ = ____________________________ + _________________________. What are the three types of cash flows listed in the Statement of Cash Flows? _________________________, __________________________, _________________________. What are the four...
Fill in the blanks: Consider the following equilibrium and fill in the blanks with either increase...
Fill in the blanks: Consider the following equilibrium and fill in the blanks with either increase or decrease. I2(s) + 5F2(g) ⇌ 2IF5(g) A decrease in volume results in a Blank 1 in pressure which will Blank 2 the amount of IF5.
This question contains multiple fill in the blanks. Please choose from the following words to fill...
This question contains multiple fill in the blanks. Please choose from the following words to fill in the appropriate blanks: mitosis, identical, synapsis, separation, different, meiosis. Words may be used more than once or not at all. NOTE: Enter your answers in all lower case letters exactly as they are shown above. During (a)____, chromosome number is reduced to haploid complements. This is achieved by (b)_____ of homologous chromosomes and their subsequent (c)_____. It would seem to be more mechanically...
Please fill in the blanks in the following table:          Present                Future        &n
Please fill in the blanks in the following table:          Present                Future                   Interest                   Time to          Value                   Value                      Rate                     Maturity          $20,000                                                6%                      34 years                                    $200,000                    7%                      12 years          $55,000          $111,419.91                                             18 years          $90,000          $207,408.40                 11%                           
fill in the blanks please a) Already outstanding securities are traded in the ______________markets. b) An...
fill in the blanks please a) Already outstanding securities are traded in the ______________markets. b) An IPO is a ____________________ market transaction. c) Firms raise capital by selling newly issued securities in the ___________markets. d) New York Stock exchange is an example of a ____________________ market. e) The ___________ of the securities traded differentiates the money market from the capital market. f) The primary goal of a financial manager should be ___________________ g) Markets for short-term debt securities are called...
answer all 5 please as this is in steps. 1. Fill in the Blanks A corporation...
answer all 5 please as this is in steps. 1. Fill in the Blanks A corporation has 10,000 bonds outstanding with a 6% annual coupon rate, 8 years to maturity, a $1,000 face value, and a $1,100 market price. MV of debt is The company’s 100,000 shares of preferred stock pay a $3 annual dividend, and sell for $30 per share. Market value of preferred shares is The company’s 500,000 shares of common stock sell for $25 per share and...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT