![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| To call/execute a shell script from a shell script | konark | UNIX for Dummies Questions & Answers | 1 | 10-26-2007 02:16 PM |
| How to pass a parameter from one Shell-script to another Shell-script | subodhbansal | Shell Programming and Scripting | 2 | 09-22-2007 02:19 AM |
| How to Run a shell script from Perl script in Parent shell? | hifake | Shell Programming and Scripting | 16 | 08-28-2007 05:42 PM |
| Accessing variables of one shell script in another shell script | rsendhilmani | Shell Programming and Scripting | 1 | 04-30-2007 05:43 AM |
| Have a shell script call another shell script and exit | heprox | Shell Programming and Scripting | 2 | 11-20-2006 05:17 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
how to do this doggy shell script?
I stuck in the following shell script. I just manage to think of using the following command:
grep 'int.*' <*.cpp | cut -f2 -d" " but no idea of continuing. Any buddy, please give me a hint? /************************************************************************************** Write a shell script to show the number of lines on which each int variable appears in a C++ program. Assume that all declarations start at the beginning of a new line and are of the format: int variable ; The output should be of the format: x number of appearances = 3 y number of appearances = 2 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
From the rules:
(6) Do not post classroom or homework problems. |
||||
| Google The UNIX and Linux Forums |