Henk Oegema wrote:
> Björn Steinbrink wrote:
>
>> Probably the first few lines go to stderr. I'd try:
>>
>> k8055 -m:1 2>/dev/null | tail -1 | cut -d';' -f2
>
> Yes Björn, this gives me the wanted output.
>
> See:
> asterisk:/home/henkoegema# k8055 -m:1 2>/dev/null | tail -1 | cut -d';' -f2
> 0 <-------- 
> asterisk:/home/henkoegema#
>
> One of my mistakes in the 'cut' command was d: i.s.o. d';'
>
> Only one step left now:
> How can I assign the output to a bash variable ?
>
>
var=`<command>`
Put var= in front of it, and use back-ticks around the whole thing.
This will assign the value of it to the var.
JR.
--
Bill will have to take Linux from my cold, dead flippers.
-Tux.