Marco d'Itri wrote:
> Indeed. I will try to find a replacement for this (help is welcome...):
> 
> get_dev_number_cciss() {
>   grep '^cciss/' /proc/driver/cciss/* | cat -n | \
>     sed -n "/cciss\/$1:/s/cciss.*//p"
> }

Here's a replacement for cat -n in posix sh. You should just be able to
drop in the function and replace the cat with it in the above and in the
other similar functions in the file. 

cat_n () {
        cat_count=1
        while read cat_line; do
                echo " $cat_count $cat_line"
                cat_count=$(expr $cat_count + 1)
        done
}

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to