![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Counting Processes | heprox | Shell Programming and Scripting | 4 | 03-21-2007 05:44 AM |
| URGENT,URGENT- Need help tape drive installation | sriny | UNIX for Advanced & Expert Users | 3 | 11-16-2006 03:43 PM |
| URGENT---URGENT--No OK PROMPt after RSC CONFIG | sriny | SUN Solaris | 7 | 10-29-2006 11:06 AM |
| Help with counting files please | gerard1 | Shell Programming and Scripting | 6 | 09-25-2006 01:37 PM |
| Counting LOC in C | amatsaka | High Level Programming | 1 | 06-04-2002 03:18 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
urgent help in counting
Hi,
When i am running the following shell scripting then i am getting the following output.. echo "sunita" echo "now date is: `date`" echo "enter command" read command read command read command read command echo "command is: $command" if [ "$command" = "" ] then echo "command is blank" else count=1 echo "count is $count" ((count=$count++1)) echo "it is enterred only $count times" fi Output is: sunita now date is: tuesday 20 40:9 count is 1 it is enterred only 2 times ---> here i need the 4 times(because i have entered 4 times in $command) Can anybody tell me that how shell i get it?????? It is very urgent..... can anybody help me??????? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|