Author: Pete Galati
Date: 10:59:29 08/23/99
Go up one level in this thread
Thanks Steve, I'm more familier with a grep clone than grep itself. But I do have grep and I've allways meant to learn to use it better, maybe this will get me kick-started. Pete On August 23, 1999 at 09:08:59, Steve Coladonato wrote: > >On August 22, 1999 at 21:17:01, Pete Galati wrote: > >>I'm looking for a program that can count the number of times "!" happens in an >>opening book that I'm putting together. ! is used at the end of each opening so >>that would give me a count of the openings. >> >>Something that works in Dos or Linux that I can compile to run in Dos. >> >>I can't find a way to do it with grep. And there's another Linux utility called >>"WC" that appears to count the total amount of words, but I havn't figured a way >>to get it to count that one specific "!" string. >> >>Thanks >> >>Pete > >Pete, > >If the "!" appears at the end of the line try: >grep -c !$ <filename> > >Steve
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.