06-07-2007
42,
0
Join Date: Apr 2007
Last Activity: 19 June 2007, 1:28 AM EDT
Posts: 42
Thanks Given: 0
Thanked 0 Times in 0 Posts
not sure how to
I have a command that will produce about 20 lines of output
what is the best way to store some of the results to certain variables?
let's say command output shows
--------------------------------
first 13@home
yahoo 33@never
usa 55 ussr
user logged in
--------------------------------
what is the best way to store values for first and 3rd line so that i can use it later in the script?
I started off with
somecommand | grep -v "-" | <--- but not sure how else to do it..
can i use case statement or? what can i do?
can someone please show me various ways to get this done?