Link to home
Start Free TrialLog in
Avatar of bt707
bt707Flag for United States of America

asked on

script to label out put of command

I have a command that I run and it prints out three numbers to the screen after it runs, I need to make a script with these three commands in
it, then take the three numbers and give them a lable and print this to the screen.


Ex:

Command and the three numbers it prints out to the screen

find /mail/queue/ -type f | egrep -v '\.etc$' | wc -l;find /mail/queue/ -type f | wc -l;find /mail/queue/ -type f -name *.etc | wc -l
    3238
    3647
     409


What I want to do with these three numbers would be to print this out to the screen using the number it put out.



Queue 1  3238
Queue 2  3647
Queue 3   409


Thanks,
ASKER CERTIFIED SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bt707

ASKER

Thanks Tintin, that worked great!!

Thanks again