[ILUG] shell scripting help required

From: hrishy (hrishys at domain yahoo.co.uk)
Date: Wed 01 Aug 2001 - 09:13:42 IST


Helloi have a text file with the following feilds

components not found/ident desc
---------------------------------------------
label | not found
report | not found
label |not found
i would like to have a count of all not found
by components........

like 25 labels not found
25 reports not found.

note these fields are availbel in a number of files
called st.txt,sy.txt etc...... in a directory called
txt how do i do it??

i guess i have to run a shell script similar to this
one

#!/bin/ksh
foreach file (*.tx)
some logic here
end

some logic should include open the first *.txt file
and look for the line label and if the second column
is nout found increment the counter by one .......

how od i do the logic .please help i am running redhat
linux6.2

regards
hrishy

____________________________________________________________
Do You Yahoo!?
Get your free at domain yahoo.co.uk address at http://mail.yahoo.co.uk
or your free at domain yahoo.ie address at http://mail.yahoo.ie



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:11:24 GMT