_________________ Strange n00bfest Member / Admin Δ Founder strangelegend@n00bfest.com
Thu Jan 31, 2013 6:12 pm
Jason0885
[n00b] Member
Joined: Wed Oct 26, 2011 8:31 pm Posts: 397
Re: Linux/Unix Help
I'll help, I am familiar enough with it..
Thu Jan 31, 2013 7:33 pm
Hito
n00bfest Council
Joined: Mon Jul 05, 2010 1:18 am Posts: 1740
Re: Linux/Unix Help
The answers to these questions require using the command grep, in some cases wc, and the dictionary file (/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).
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.
Using tr, convert all upper case letters to lower case. (1 points) 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 file named "words" in your home dir for use with the remaining questions. (3 points) Count the number of five letter words in the dictionary. (3 points) Output all the words in the dictionary [$HOME/words] that have six (or more) consonants (non-vowels) in a row. (4 points)
Maybe if you had it create a new document instead of trying to update the one you are modifying? I'm not sure if you have already tried that, but would be my first guess.
Users browsing this forum: Bing [Bot] and 2 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum