> I'd suggest something like this:
> 
> if [ ${string: -5} = "groff" ] ; then {do something} ; fi
> 
>       Dave  :)

Sorry, a bit of a typo, but this is "more" correct:

if [ ${i: -5} = "groff" ] ; then {do something} ; fi

Close, but had the wrong variable.  :P

        Dave

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to