TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Classic View

Use Monospaced Font
Show HTML Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Greg Bek <[log in to unmask]>
Tue, 12 Oct 1999 11:32:53 -0700
text/plain (31 lines)
Ted Dennison wrote:
>
> I have a simpler one:
>
>      grep -c ";"
>
> (To get this to work on windows, you need cygwin. :-)  )
>
Actually on NT in a shell window type:
find /c ";" *.ada
D:\CCSnapShots\gab_view3\NewAdaVOB\test\greeting.rss>find /c ";" *.ada

---------- COMPLEX.1.ADA: 2

---------- FOO.1.ADA: 1

---------- GREET.2.ADA: 6

---------- HELLO.2.ADA: 4

---------- MESSAGES.1.ADA: 3

---------- MESSAGES.2.ADA: 5

---------- WELCOME.2.ADA: 5

The NT find command has /I /V /N and /C that work very similarly
to the unix grep -i -v -n -c.

Greg

ATOM RSS1 RSS2