Question: This is unix tools and scripting. Given a book corpus give a command to : (For all of these questions, you may NOT use: grep,

This is unix tools and scripting. Given a book corpus give a command to : (For all of these questions, you may NOT use: grep, sed, awk, or per if, for, while, until, case, or read).

This is unix tools and scripting. Given a book corpus give aTHANK YOU VERY MUCH. YOUR EFFORTS ARE APPRECIATED !

a) [1] remove all blank lines. "Blank," for this question, means "doesn't contain any characters." [06] or [f9] b) [2] remove the last character of every line of the books corpus. [d] c) [2] determine how often the letter 'u' or 'U' appear in the books corpus. [1] d) [2] display the total word count (number of words, including duplicates). Display only this number. eg: 'he said she said' -> 4 [c] e) [4] display the number of unique words (the word count, excluding duplicates), case insensitive (use tr and posix classes). eg: 'he SAID she said' -> 3 [4] f) [4] Display the number of words that occur only once, case insensitive. [a] g) [4] display the name of the file in the books corpus that contains the fewest newline characters. [O]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!