Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

Chars

Console app that shows the number of occurences of each character in a given file

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

Chars

This is a simple console program to show the number of times each character occurs in a file.

Usage

chars [filename]

Example

pascal
    C:\> chars LICENSE
  
    0   ... 0    32   . 152    64 @ ... 0    96 ` ... 0   128 ?? ... 0   160 ?? ... 0   192 + ... 0   224 ?? ... 0
    1   ... 0    33 ! ... 0    65 A .. 28    97 a .. 25   129 ?? ... 0   161 ?? ... 0   193 - ... 0   225 ?? ... 0
    2   ... 0    34 " ... 4    66 B ... 5    98 b ... 9   130 ?? ... 0   162 ?? ... 0   194 - ... 0   226 ?? ... 0
    3   ... 0    35 # ... 0    67 C .. 11    99 c .. 18   131 ?? ... 0   163 ?? ... 0   195 + ... 0   227 ?? ... 0
    4   ... 0    36 $ ... 0    68 D .. 10   100 d .. 16   132 ?? ... 0   164 ?? ... 0   196 - ... 0   228 ?? ... 0
    5   ... 0    37 % ... 0    69 E .. 35   101 e .. 50   133 ?? ... 0   165 ?? ... 0   197 + ... 0   229 ?? ... 0
    6   ... 0    38 & ... 0    70 F .. 12   102 f .. 15   134 ?? ... 0   166 ?? ... 0   198 ?? ... 0   230 ?? ... 0
    7   ... 0    39 ' ... 0    71 G ... 6   103 g .. 10   135 ç ... 0   167 º ... 0   199 Ã ... 0   231 þ ... 0
    8   ... 0    40 ( ... 2    72 H .. 18   104 h .. 21   136 ê ... 0   168 ¿ ... 0   200 + ... 0   232 Þ ... 0
    9   ... 0    41 ) ... 2    73 I .. 36   105 i .. 48   137 ë ... 0   169 ® ... 0   201 + ... 0   233 Ú ... 0
   10   .. 21    42 * ... 0    74 J ... 0   106 j ... 1   138 è ... 0   170 ¬ ... 0   202 - ... 0   234 Û ... 0
   11   ... 0    43 + ... 0    75 K ... 1   107 k ... 1   139 ï ... 0   171 ½ ... 0   203 - ... 0   235 Ù ... 0
   12   ... 0    44 , .. 22    76 L .. 15   108 l .. 16   140 î ... 0   172 ¼ ... 0   204 ¦ ... 0   236 ý ... 0
   13   .. 21    45 - ... 0    77 M ... 9   109 m ... 8   141 ì ... 0   173 ¡ ... 0   205 - ... 0   237 Ý ... 0
   14   ... 0    46 . ... 3    78 N .. 30   110 n .. 32   142 Ä ... 0   174 « ... 0   206 + ... 0   238 ¯ ... 0
   15   ... 0    47 / ... 1    79 O .. 36   111 o .. 50   143 Å ... 0   175 » ... 0   207 ¤ ... 0   239 ´ ... 0
   16   ... 0    48 0 ... 1    80 P ... 8   112 p .. 12   144 É ... 0   176 ¦ ... 0   208 ð ... 0   240   ... 0
   17   ... 0    49 1 ... 1    81 Q ... 0   113 q ... 0   145 æ ... 0   177 ¦ ... 0   209 Ð ... 0   241 ± ... 0
   18   ... 0    50 2 ... 1    82 R .. 34   114 r .. 27   146 Æ ... 0   178 ¦ ... 0   210 Ê ... 0   242 = ... 0
   19   ... 0    51 3 ... 0    83 S .. 25   115 s .. 34   147 ô ... 0   179 ¦ ... 0   211 Ë ... 0   243 ¾ ... 0
   20   ... 0    52 4 ... 0    84 T .. 40   116 t .. 48   148 ö ... 0   180 ¦ ... 0   212 È ... 0   244 ¶ ... 0
   21   ... 0    53 5 ... 0    85 U ... 8   117 u .. 12   149 ò ... 0   181 Á ... 0   213 i ... 0   245 § ... 0
   22   ... 0    54 6 ... 0    86 V ... 2   118 v ... 1   150 û ... 0   182 Â ... 0   214 Í ... 0   246 ÷ ... 0
   23   ... 0    55 7 ... 0    87 W .. 10   119 w .. 10   151 ù ... 0   183 À ... 0   215 Î ... 0   247 ¸ ... 0
   24   ... 0    56 8 ... 0    88 X ... 1   120 x ... 0   152 ÿ ... 0   184 © ... 0   216 Ï ... 0   248 ° ... 0
   25   ... 0    57 9 ... 1    89 Y ... 6   121 y ... 7   153 Ö ... 0   185 ¦ ... 0   217 + ... 0   249 ¨ ... 0
   26   ... 0    58 : ... 1    90 Z ... 0   122 z ... 0   154 Ü ... 0   186 ¦ ... 0   218 + ... 0   250 · ... 0
   27   ... 0    59 ; ... 0    91 [ ... 0   123 { ... 0   155 ø ... 0   187 + ... 0   219 ¦ ... 0   251 ¹ ... 0
   28   ... 0    60 < ... 0    92 \ ... 0   124 | ... 0   156 £ ... 0   188 + ... 0   220 _ ... 0   252 ³ ... 0
   29   ... 0    61 = ... 0    93 ] ... 0   125 } ... 0   157 Ø ... 0   189 ¢ ... 0   221 ¦ ... 0   253 ² ... 0
   30   ... 0    62 > ... 0    94 ^ ... 0   126 ~ ... 0   158 × ... 0   190 ¥ ... 0   222 Ì ... 0   254 ¦ ... 0
   31   ... 0    63 ? ... 0    95 _ ... 0   127   ... 0   159 ƒ ... 0   191 + ... 0   223 ¯ ... 0   255   ... 0