Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The answers to these questions require using the command grep, in some cases wc,

ID: 3684543 • Letter: T

Question

The answers to these questions require using the command grep, in some cases wc, and the dictionary le (/usr/local/tmp/Words). The dictionary is case sensitive; keep this in mind when writing your grep commands. Also, for the purposes of these questions, only a, e, i, o, and u are vowels (not y), and a consonant is any character that is not a vowel (including punctuation). 2. Using sed, remove the reversed copy of each word. Hint: Each word is followed by it’s reverse on subsequent lines. Save the output of this command as a le named “words” in your home directory for use with the remaining questions.

I have absolutely no idea how to do this. Any help would be appreciated.

Explanation / Answer

First, take a look at the contents of (/usr/local/tmp/Words). Note that each word has two entries. In normal and reverse order. In addition, the first letter of each word is upper case.

$ tr '[:upper:]' '[:lower:]' < Words.txt > Words2.txt

Sorry i couldn't provde the solution to remove the reversed copy of each word.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote