The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 03-18-2008
ZAXTHEGREAT ZAXTHEGREAT is offline
Registered User
  
 

Join Date: Mar 2008
Location: England
Posts: 3
Quote:
Originally Posted by era View Post
A Hangman game? Just grep is not sufficient, no. Like Jim already told you, grep can find lines in a file which match a particular pattern, but it just prints them, nothing more. In particular, it doesn't replace characters with other characters; nor does it have loops (other than the input loop for reading in the file, one line at a time, and print those lines which match the specified pattern. If you are really clever you could perhaps use that to drive something ...)

Google for "Hangman source code" or visit the "99 bottles of beer" site.
Yeah thats right something like hangman do you have any examples for me to see what the script would look like