View Single Post
Old May 18th, 2005, 9:16 AM   #3
Jimineep
Newbie
 
Join Date: May 2005
Posts: 2
Rep Power: 0 Jimineep is on a distinguished road
OK, scrap that, it is too complex for my first ever script!!

So i'm gonna try a simpler one... ure use of uniq inspired me

So could I use wgrep to search a specific website, and then use sort to take all of the words from this website, then arrange them in order and uniq write them to a specific dictionary:

something like this

echo what dictionary do you want to add to?

read LANG

and what webpage do you want to look up in order to find words?

read URL

lynx -dump $URL | cat | sort | uniq >> /usr/dict/$LANG

I am a little unsure of the piping...do I not need to define STDOUT/STDIN?

I wont get to test anythign until tomorrow so if anyone is running linux I would be grateful if u could help me out and tell me if it works or if there are any glaring errors

I've gotta get my head round all this by september when I begin my masters in bioinformatics! I am supposed to be competent with the CLI :eek:
Jimineep is offline   Reply With Quote