LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Shell script - letter stat (https://www.linuxquestions.org/questions/programming-9/shell-script-letter-stat-383356/)

kovattila 11-15-2005 10:04 AM

Shell script - letter stat
 
There is "n" textfile as a parameter, i don't know how much file i will have. I have to make a matrix (on the screen) which contains the following, for example:
a 12 14 0
b 13 1 0
c 2 43 0
d 1 344 33
First row: All existing letter in ABC order
Second row: Letters in the first file
Third row: Letters in the second file
...
There is no lines like the following:
e 0 0 0
I mean if the text doesn't contain "e" it causes that this line of the matrix won't be written to the screen.

I have to make this Unix shell script for Hungarians, so i need á,é,í,ó,ú,õ letters in the stat. (with ISO-8859-2 code)

Does anybody have an idea?
Thank you in advance,
Attila

jailbait 11-15-2005 10:59 AM

"Does anybody have an idea? "

I think that this looks a lot like a homework assignment.

-------------------------
Steve Stites

kovattila 11-15-2005 01:48 PM

I'm a bit old to be a student. :D I just want to learn Unix scripting. It's enough if somebody gives me a line.


All times are GMT -5. The time now is 09:38 PM.