Nandy
04-30-2001, 09:21 PM
I made a Korn script to filter some events from a report and create files that will hold those events in order to classify them easier. I am using the egrep command. I want to add some static text to each report and also add to the report the count of instances on each report. I can achieve the count by merely using the egrep -c. But how do I make every file to be created with my descriptive information.
Example:
The script will create 3 files containing the results from each instance.
grep packet general.info >packet.info
grep frame general.info >frame.info
grep ber general.info >ber.info
Every generated .info file should have a heading describing the file contents(that will be the static text) and also it should include the count of instances on each file(achieve by the egrep -c command).
Now bash and Korn script masters, show off y'all...
Nandy
Example:
The script will create 3 files containing the results from each instance.
grep packet general.info >packet.info
grep frame general.info >frame.info
grep ber general.info >ber.info
Every generated .info file should have a heading describing the file contents(that will be the static text) and also it should include the count of instances on each file(achieve by the egrep -c command).
Now bash and Korn script masters, show off y'all...
Nandy