[puduvailug] Re: [Tip] Find the All the related words from Local Dictionary

  • From: Prasath Ramachandiran <prasath.ram8@xxxxxxxxx>
  • To: puduvailug@xxxxxxxxxxxxx
  • Date: Thu, 30 Jun 2011 11:45:23 +0530

Search the word in a file or directory using "grep" command also,

1. grep "test_word" /home/user12/test.txt
2. grep "test_word" /home/user12/*
3. grep -R "test_word" * --  (-R for recursive)

-R    -> recursive
-n    -> displaying the line number
-i    -> case sensitive

4. grep -Rin "test_word" <path>



On Thu, Jun 30, 2011 at 11:24 AM, Tha.Suresh <jemenisuresh@xxxxxxxxx> wrote:

> Find the All the related words from Dictionary in Terminal $ <
> /usr/share/dict/words egrep ^some english word^ It'll print all the related
> words to the word given. Ex: [suresh@mercury ~]$ < /usr/share/dict/words
> egrep geek geek geekier geekiest geeks geeky
>
>
> --
> Warm Regards,
> Tha.Suresh
>
>
> My experiences with Linux:  http://thasulinux.wordpress.com
> Cooool Linux Tips & Tricks: http://gnutips.wordpress.com
> Free/Open Source Jobs:      http://fossjobs.in
>
>


-- 
Regards
Prasath R

"PuduvaiLUG (Puduvai Linux Users Group)"

http://puduvailug.wordpress.com/

Other related posts: