LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 05-24-2011, 05:25 PM   #1
brainAcid
LQ Newbie
 
Registered: May 2011
Posts: 15

Rep: Reputation: Disabled
Talking Automatic Dictionary


Hello LinuxQ's community!

I would like to automate a definition process. I have 11,581 to define. :|

I would like to read each word, copy the definition(s) and append it next or below the word or save definitions to file.

The word list has one word per line.

Python script?
Bash?
Perl?

Its an interesting project but I cant seem to figure it out. Lack of programming skills.

If I can get this done I wouldnt mind donating for the help.

Thanks

Last edited by brainAcid; 05-24-2011 at 05:33 PM.
 
Old 05-24-2011, 05:45 PM   #2
brainAcid
LQ Newbie
 
Registered: May 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
Something like
Quote:
read $wordFILE
for word in $wordFILE
do
curl dict://dict.org/d:$word >> $outFILE
Not a programmer... =-(
 
Old 05-24-2011, 06:10 PM   #3
brainAcid
LQ Newbie
 
Registered: May 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
#!/bin/bash
exec 3< input.txt
while read <&3
do echo
curl dict://dict.org/d:"$REPLY":web1913 >> outfile
done
exec 3>&-
YAY!!
 
  


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
Suggest a good offline dictionary-database for gnome-dictionary. abhijeetnayak Linux - Software 1 07-05-2009 05:17 PM
Dictionary pras123 Linux - General 3 08-11-2008 12:23 PM
Dictionary for 10.3 raylhm Suse/Novell 4 01-26-2008 04:05 PM
Better dictionary for gnome-dictionary? General Linux - Software 4 08-21-2006 10:39 PM
dictionary santasballz Linux - Software 1 03-02-2004 01:15 AM


All times are GMT -5. The time now is 12:21 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration