Unix administration - Calculate percentages

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > October 2005 > Calculate percentages





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Calculate percentages
Dion

2005-10-24, 3:49 pm

I am a beginner in UNIX and I want to write a shell script calculating
the proportion of one-line comments in any C++ program. Could anyone
help me please? Thanks!

Adam Price

2005-10-24, 3:49 pm

On 23 Oct 2005 13:57:27 -0700, Dion wrote:

> I am a beginner in UNIX and I want to write a shell script calculating
> the proportion of one-line comments in any C++ program. Could anyone
> help me please? Thanks!


Sure, but because this sounds a lot like the sort of question people
normally get as homework, post what you have so far.
What have you tried?
What are you having trouble with?
Which shell are you using?
Adam
Ian Wilson

2005-10-24, 3:49 pm

Dion wrote:
> I am a beginner in UNIX and I want to write a shell script calculating
> the proportion of one-line comments in any C++ program. Could anyone
> help me please? Thanks!
>


Please don't multi-post, either pick one newsgroup or use cross-posting
carefully:
http://www.uwasa.fi/~ts/http/crospost.html

Also
http://www.catb.org/~esr/faqs/smart...s.html#homework
Dave Hinz

2005-10-24, 3:49 pm

On 23 Oct 2005 13:57:27 -0700, Dion <a_dionysia@yahoo.co.uk> wrote:
> I am a beginner in UNIX and I want to write a shell script calculating
> the proportion of one-line comments in any C++ program. Could anyone
> help me please? Thanks!


When is your assignment due, and how often should we expect messages for
more assignments from you?

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com