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).
THANK 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
Get step-by-step solutions from verified subject matter experts
