![]() |
|
|
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 |
| count occurences of specific character in the file | superprogrammer | HP-UX | 9 | 04-09-2008 12:05 PM |
| count character | myguess21 | Shell Programming and Scripting | 13 | 03-06-2008 03:07 PM |
| Help On Unix Script Count Line Of File | fafo77 | Shell Programming and Scripting | 4 | 02-11-2008 07:30 AM |
| Count occurances of a character in a file | Shivdatta | Shell Programming and Scripting | 6 | 12-24-2007 04:23 PM |
| How to count no of occurences of a character in a string in UNIX | kamesh83 | UNIX for Advanced & Expert Users | 11 | 03-17-2006 02:39 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Unix shll script for character count findings?
Hi,
iam presenting the input text file format.Of this i need the character count of the number of characters present in each file.The attached file is a combination of 3 text file.each text file starts at record 1 - 34, then the next tetx file starts. What i need is the character count of each text file in the main text file.the 3 text file is in a main text file called 71018158.txt. The first 2 lines of each text file is not required for character count. I tried the following cmd to remove those 2 line grep -v "^01" *.txt | wc -m grep -v "^02" *.txt | wc -m and i also don't need the " ^ " present in the text file for the determination of the character count. Hope u understand the point. Regards Sethunath 01^V1.0^EXPORTED^2470717800001001001^71018158^00000001^C0^4686019C^AJ82^A457^^n:\indata\20070628\710 18158^71018158.001^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^01^50^01 02^^^71018158^01^01^^^2470717^800001^001^N^^^ 03^07611983-01^SAME^^^SAME^^^^^^^^ 04^^^^^4616 ^^DE95316^^^95316^^^1^1^Y^Y 05^2^^^^^^^^ 06^29633^^^^^^^^^^1 07^061807^061807^11^^90801^^^^^1^ 31000^1^^^^^^00C323001 08^^^^^^^^^^^^^^^^^^ 09^^^^^^^^^^^^^^^^^^ 10^^^^^^^^^^^^^^^^^^ 11^^^^^^^^^^^^^^^^^^ 12^^^^^^^^^^^^^^^^^ 13^^^^^^^^^^^^^^^^^ 14^^^^^^^^^^^^^^^^^ 15^^^^^^^^^^^^^^^^^ 16^^^^^^^^^^^^^^^^^ 17^^^^^^^^^^^^^^^^^ 18^^^^^^^^^^^^^^^^^ 19^^^^^^^^^^^^^^^^^ 20^^^^^^^^^^^^^^^^^ 21^^^^^^^^^^^^^^^^^ 22^^^^^^^^^^^^^^^^^ 23^^^^^^^^^^^^^^^^^ 24^^^^^^^^^^^^^^^^^ 25^^^^^^^^^^^^^^^^^ 26^^^^^^^^^^^^^^^^^ 27^^^^^^^^^^^^^^^^^ 28^^^^^^^^^^^^^^^^^ 29^^^^^^^^^^^^^^^^^ 30^^^^^^^^^^^^^^^^^ 31^^ 31000 32^Y^^STEWART^^^MD^-0388035^SWART MD^3340 ROAD, D-2^^MO95350^^CA^95350^^^^^^^MD^220 F^^MO95350^MODESTO^CA^95350^^^2095795628^ 01232001^ 33^^^^^^^^^^071700164-00 34^^^1609987510^1912090622^^1912090622^^2^ 01^V1.0^EXPORTED^2470717800002001001^71018158^00000002^C0^4686019C^AJ82^A457^^n:\indata\20070628\710 18158^71018158.002^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^02^50^01 02^^^71018158^01^01^^^2470717^800002^001^N^^^ 03^7398347-01^SAME^^^SAME^^^^^^^^ 04^^MATTHEW^^^3901 RD^^CE95307^^CA^95307^^11011979^1^1^Y^Y 05^2^^^^^^^^ 06^30002^^^^^^^^^^1 07^061807^061807^11^^90807^^^^^1^ 20600^1^^^^^^00C323001 08^^^^^^^^^^^^^^^^^^ 09^^^^^^^^^^^^^^^^^^ 10^^^^^^^^^^^^^^^^^^ 11^^^^^^^^^^^^^^^^^^ 12^^^^^^^^^^^^^^^^^ 13^^^^^^^^^^^^^^^^^ 14^^^^^^^^^^^^^^^^^ 15^^^^^^^^^^^^^^^^^ 16^^^^^^^^^^^^^^^^^ 17^^^^^^^^^^^^^^^^^ 18^^^^^^^^^^^^^^^^^ 19^^^^^^^^^^^^^^^^^ 20^^^^^^^^^^^^^^^^^ 21^^^^^^^^^^^^^^^^^ 22^^^^^^^^^^^^^^^^^ 23^^^^^^^^^^^^^^^^^ 24^^^^^^^^^^^^^^^^^ 25^^^^^^^^^^^^^^^^^ 26^^^^^^^^^^^^^^^^^ 27^^^^^^^^^^^^^^^^^ 28^^^^^^^^^^^^^^^^^ 29^^^^^^^^^^^^^^^^^ 30^^^^^^^^^^^^^^^^^ 31^^ 20600 32^Y^^STEWART^^^MD^^QUISLING, MD^3340 ROAD, D-2^^MO95350^^CA^95350^^^QUISLING^^^^MD^220 SAVE., #F^^MO95350^^CA^95350^^^209579 5628^05152006^ 33^^^^^^^^^^061300348 34^^^1609987510^1912090622^^1912090622^^2^ 01^V1.0^EXPORTED^2470717800003001001^71018158^00000003^C0^4686019C^AJ72^A457^NEWHCFA^n:\indata\20070 628\71018158^71018158.003 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^03^50^01 02^^^71018158^01^01^^^2470717^800003^001^N^^^ 03^WBW902A68176^SAME^^^SAME^^^^^^^^ 04^^JOSEPH^^^907 HELMS ^^MO95350^^CA^95350^^10221946^1^1^^Y 05^2^^^^^^^^ 06^29633^^^^^^^^^^1 07^061807^061807^11^^90807^^^^^1^ 20600^1^^^^^^00C323001 08^^^^^^^^^^^^^^^^^^ 09^^^^^^^^^^^^^^^^^^ 10^^^^^^^^^^^^^^^^^^ 11^^^^^^^^^^^^^^^^^^ 12^^^^^^^^^^^^^^^^^ 13^^^^^^^^^^^^^^^^^ 14^^^^^^^^^^^^^^^^^ 15^^^^^^^^^^^^^^^^^ 16^^^^^^^^^^^^^^^^^ 17^^^^^^^^^^^^^^^^^ 18^^^^^^^^^^^^^^^^^ 19^^^^^^^^^^^^^^^^^ 20^^^^^^^^^^^^^^^^^ 21^^^^^^^^^^^^^^^^^ 22^^^^^^^^^^^^^^^^^ 23^^^^^^^^^^^^^^^^^ 24^^^^^^^^^^^^^^^^^ 25^^^^^^^^^^^^^^^^^ 26^^^^^^^^^^^^^^^^^ 27^^^^^^^^^^^^^^^^^ 28^^^^^^^^^^^^^^^^^ 29^^^^^^^^^^^^^^^^^ 30^^^^^^^^^^^^^^^^^ 31^^ 20600 32^Y^QUISLING^^^^MD^0388035^STEWART^3340 ROAD, D-2^^MO95350^^CA^95350^^^QUISLING^STEWART^^^MD^220 STANDAVE., #F^^^MODESTO^CA^ 95350^^^2095795628^05072007^ 33^^^^^^^^^^071240677 34^^^1609987510^1912090622^^1912090622^^2^ |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|