LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Opposite of Cat >>

[ILUG] Opposite of Cat >>

Nick Murtagh murtaghn at tcd.ie
Sun Jun 9 14:03:11 IST 2002


On Friday 07 June 2002 22:57, Mark Finlay wrote:
> I need to write an unistall script that will remove that text from the
> file bearing in mind there could be text before and after that block
> that need to be left intact and that the numbers 99 and 100 could have
> changed and that/usr/local/OpenOffice.org1.0 could have changed . So i
> really need to remove the lines:
>
> *,RestartStyleHint=3
> *,Priority=1
> *,RestartCommand=killall ooqstart
> *,RestartStyleHint=3
> *,Priority=50
> *,RestartCommand=ooqstart *
>
> Any ideas?

Surely a modification of the "OpenOffice.org Location" perl script would
do the trick: read a line from the file, and if it doesn't match any of
the above (using regexps) print it out to a new file. copy the new file
over the old file...




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell