pure bash, grep, sed??? best solution?

DJ Lucas dj_me at swbell.net
Fri Sep 6 07:35:23 PDT 2002


DJ Lucas  wrote in message:

> Björn Lindberg  wrote in message:
>
>> DJ Lucas wrote:
>>
>>> # source the newly created file
>>> source /var/cache/rltmp
>>> if [ "$RLTEST" == "N 3" ]
>>> then
>>>     echo 'PRL=N' >> /var/cache/rlstate
>>>     echo 'CRL=3' >> /var/cache/rlstate
>>> fi
>>
>> echo $RLTEST | read PRL CRL
>>
>> The whole thing seems extremely cumbersome. Why don't you tell us why
>> you want to do this, and maybe we can find an easier solution. For
>> instance, to directly get the runlevels into 2 variables, you can do
>>
>> runlevel | read PRL CRL
>>
>>
>> Björn
>
> Björn,
>
> The whole thing is "extremely cumbersome" hence my point in posting.
> That was the simple solution I was looking for.
>
> Thanks
>
> DJ

btw..using the above command in the affeted script, would no longer
require that a cache or state file of anykind even exists.

Thanks again.


-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-chat' in the subject header of the message



More information about the lfs-chat mailing list