Register
It is currently Sun Dec 21, 2014 4:59 am

Grep the great Crossword Puzzle Solver crosswordsolver.sh


All times are UTC - 6 hours


Post new topic Reply to topic  [ 1 post ] 
Author Message
 PostPosted: Tue May 17, 2005 8:19 pm   
Site Admin
User avatar

Joined: Sun May 15, 2005 9:36 pm
Posts: 673
Location: Des Moines, Iowa
http://www.bashscripts.org/downloads/Sc ... r.0.0.1.sh

Code:
#!/bin/bash
##########################
# USA Linux Users Group  #
# http://www.usalug.org  #
# http://bashscripts.org #
##########################
#
#
#
#    FILE: crosswordsolver.sh
# VERSION: .0.0.1
#    DATE: 12-22-2004
#
#  AUTHOR: Dave Crouse <dave NOSPAMat usalug.org>
#          PO Box 3210
#          Des Moines, IA 50316-0210
#          United States
#
#
# Copyright (C) 2004 Dave Crouse <dave NOSPAMat usalug.org>
# All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
######################################################################################
#
clear
echo "##########################################"
echo "# Grep the great Crossword Puzzle Solver #"
echo "##########################################"
echo ""
echo "This script uses the grep command to do a dictionary search for words that you know some parts of."
echo ""

# Functions starts here
searchwords ()
{
read -p "Please enter the letters you know, and use the period for the letters you don't know.  " unknowntext
grep '\<'$unknowntext'\>' /usr/share/dict/words
echo ""
}

# Program starts here
while true; do
echo "You can quit by using CTL-C to exit"
searchwords
done
exit


Top
 Profile WWW  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 1 guest


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

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP