Text processing/1: Difference between revisions

Undo revision 202589 by Peak (talk) (apart from lead->led.)
(cd intro)
(Undo revision 202589 by Peak (talk) (apart from lead->led.))
Line 1:
{{task|Text processing}}{{Template:clarify task}}
Often thedata format of datais produced by one program, isin unsuitablethe wrong format for later use by another program or person. In suchthese situations, another program can be written to parse and transform the original data into a suitable format useful to the other. The term "dataData mungingMunging" is [http://www.google.co.uk/search?q=%22data+munging%22 often] used in programming circles for this task.
 
A [http://groups.google.co.uk/group/comp.lang.awk/msg/0ecba3a3fbf247d8?hl=en request] on the comp.lang.awk newsgroup led to a typical data munging task:
Line 31:
Only a sample of the data showing its format is given above. The full example file may be downloaded [http://rosettacode.org/resources/readings.zip here].
 
Structure your program to show statistics for each line of the file, (alongsimilar to the lines of theoriginal Python, Perl, and AWK examples originally provided on this pagebelow), followed by summary statistics for the file. When showing example output, just show a few line statistics togetherand withthe completefull overallend summary.
 
=={{header|Ada}}==
Anonymous user