![]() |
|
|
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 |
| Problem count with wc-l command | kunimi | UNIX for Dummies Questions & Answers | 2 | 02-27-2008 03:42 AM |
| Complex file count problem | bbergstrom74 | Shell Programming and Scripting | 1 | 01-22-2008 12:16 PM |
| Word count problem | ssmith001 | UNIX for Dummies Questions & Answers | 1 | 01-02-2007 01:21 PM |
| How to count the record count in an EBCDIC file. | oracle8 | UNIX for Dummies Questions & Answers | 1 | 07-26-2006 08:22 PM |
| CPU count | hshapiro | UNIX for Dummies Questions & Answers | 2 | 04-03-2006 02:08 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
problem with count
Hi,
consider this file "master" which contains data as 11:skjs:24:asd2 1:skdfjk:23:sfdf 12:su:25:jkh5 13:gre:22:kljl7 14:sai:34:kjg7 I am trying to enter data into the file "master" i want to count the number of times 11 is present in the file "master" that to in the first filed itself. the delimetter is ":" i am using the command: grep -c 11 master answer) 1 grep -c 1 master answer) 5. but 5 is not the answer as 1 occurs only once in the 2nd row. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|