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.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.