Re: [ILUG] OpenOffice.org Location

From: Kevin O' Riordan (kor at domain compsoc.com)
Date: Fri 07 Jun 2002 - 16:39:52 IST


Hi Mark, again,

yeah, would've been nice if I tested that last bit - it doesn't work :(

the following is tested, and works, but it's cumbersome - someone else
can definitley do better !

location="`grep '^OpenOffice\.org 1\.0\=file' ${HOME}/.sversionrc | sed -e 's/^\(OpenOffice\.org 1\.0\=file:\/\/\)\(.*\)/\2/g'`"

blah
-kev

> > the program location. OpenOffice puts the .sversionrc file in
> > the users home directory containing the following text:
>
> > [Versions]
> >
> > OpenOffice.org 1.0=file:///home/sisob/OpenOffice.org1.0
>
> location="`sed -e 's/^OpenOffice\.org 1\.0=file:\/\/\(.*\)/\1/' $HOME/.sversionrc`"
>
> sed ? Perl would look similar, or I'm sure it could be done (by someone
> else) with the bash ${%%} or ${##} thingies ...
>
>
> hth
> -kev
>
> --
> Irish Linux Users' Group: ilug at domain linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at domain linux.ie

-- 
	Writing a haiku
	Is much harder than it looks.
	These lines fall short.


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:17:09 GMT