Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-15-2005, 11:04 AM   #1
LQ Newbie
Registered: Nov 2005
Location: Budapest, Hungary
Posts: 2

Rep: Reputation: 0
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,
Old 11-15-2005, 11:59 AM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,669

Rep: Reputation: 229Reputation: 229Reputation: 229
"Does anybody have an idea? "

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

Steve Stites
Old 11-15-2005, 02:48 PM   #3
LQ Newbie
Registered: Nov 2005
Location: Budapest, Hungary
Posts: 2

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell script inside shell script treotan Linux - General 4 02-19-2009 07:34 AM
Shell Scripting: Getting a pid and killing it via a shell script topcat Programming 15 10-28-2007 03:14 AM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 06:32 PM
'cannot stat' script in /etc/rc.d/, try to run script at startup quintan Linux - Software 1 11-21-2005 03:53 AM
Linux stat to Windows Stat sridurai Programming 3 09-24-2004 05:07 PM

All times are GMT -5. The time now is 12:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration