LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-28-2012, 07:02 PM   #1
raoulduke666
LQ Newbie
 
Registered: Sep 2012
Posts: 1

Rep: Reputation: Disabled
Help with EGREP in terminal


I'm using an open terminal, and changing directories to /usr/share/dict. There is a file called words in dict that contains every word in the english language. I also have to use the egrep command. What command would you use to:

-list all words that have the letter 'a' followed immediately by the letter z

-list all words that have the letter a followed sometime later by the letter z (there must be one letter in between)

Essentially the command line would be

egrep ...... words

Thanks!

Last edited by raoulduke666; 09-28-2012 at 07:27 PM.
 
Old 09-28-2012, 07:43 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 614Reputation: 614Reputation: 614Reputation: 614Reputation: 614Reputation: 614
This sounds like homework, which I won't do for you.

Try
Code:
man 7 regex
or Google.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using grep and egrep in the terminal KumARan23 Linux - Newbie 3 11-11-2007 10:27 AM
egrep question internal_war Linux - Newbie 6 05-05-2005 07:32 PM
Help with egrep smart_sagittari Linux - Newbie 2 05-02-2005 09:18 AM
Using Grep and Egrep linux-nerd Linux - General 5 10-10-2004 12:37 PM
Using egrep Barbarian Programming 5 10-20-2002 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration