Re: [SLUG] set the PKG_CONFIG_PATH variable
On Tue, Nov 11, 2008 at 12:59:45PM +1100, Erik de Castro Lopo wrote: > jam wrote: > > > > Regardless of which distro or distro version you are using, replacing > > > the distro installed package with something you compile yourself is > > > almost always a bad idea, especially when you are downgrading > > > > Do qualify your assertion (eg if you are utterly clueless then ...) because > > otherwise the advice is. well um, um, not useful > > The original poster has a very long history of asking questions > on this mailing list. From that history I have been able to > gauge his level of expertise and I adjusted my answer accordingly. > Erik, your response WAS qualified and really could not be improved. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] A command question.
[EMAIL PROTECTED] wrote: Is there a command that finds a file containing a certain word? find and apropos don't. They work on filenames only. Using Hardy H. Any suggestions gratefully etc. Bill Bennett Hello Bill, find . -name "*" -print -exec grep word {} \; finds the word "word" in files in the current directory on my system, and prints the relevant file name. Ben -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] A command question.
> find . -exec grep "www.athabasca" '{}' \; -print This is massively inefficient. A better choice would be grep -rl piped to xargs. grep -rl www.athabasca | xargs sed -i 's#www.athabasca#www.bathsheba#' - Jeff -- OSDC 2008: Sydney, Australiahttp://www.osdc.com.au/2008/ "It will test your head. And your mind. And your brain, too." - Jack Black, School of Rock -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] A command question.
find . -exec grep "www.athabasca" '{}' \; -print This command will search in the current directory and all sub directories. All files that contain the string will have their path printed to standard output. If you want to just find each file then pass it on for processing use the -q grep option. This finds the first occurrance of the search string. It then signals success to find and find continues searching for more files. find . -exec grep -q "www.athabasca" '{}' \; -print This command is very important for process a series of files that contain a specific string. You can then process each file appropriately. An example is find all html files with the string "www.athabascau.ca". You can then process the files with a sed script to change those occurrances of " www.athabascau.ca" with "intra.athabascau.ca". On Fri, Nov 14, 2008 at 3:14 PM, <[EMAIL PROTECTED]> wrote: > Is there a command that finds a file containing a certain word? > > find and apropos don't. They work on filenames only. > > Using Hardy H. > > Any suggestions gratefully etc. > > Bill Bennett > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html > -- "Never Trust an Operating System You don't have the Source for..." "Closed Source for device Driver are ILLEGAL and not Ethical... act!" "Isn't it, MS Windows a real multitasking OS?, Why? 'Cause It can boot and crash simultaneously!" -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] A command question.
Jeff Waugh wrote: Is there a command that finds a file containing a certain word? find and apropos don't. They work on filenames only. grep ... and you can use -r to search through files/directories recursively. You can also use -i to do a case insensitive search. And there are dozens of other flags to confuse you! man grep <=== tells all. And to add to the mix, there are variants fgrep and egrep :) cheers rickw -- _ Rick Welykochy || Praxis Services Tis the dream of each programmer before his life is done, To write three lines of APL and make the damn thing run. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Simple Accounting & Stock Control software
Ben wrote: I'd like to use some accounting and stock control software. I run a computer business and I want to track the purchase price of parts and correlate them with sales invoices. I'd like to be able to categorise parts based on where they are stored. It would be good if I could get it to work with a barcode scanner for both products and serial numbers in the future. I don't know what double entry accounting is, and I don't want to find out unless absolutely have to. Ideally a book keeper would be involved at some stage. Double entry bookkeeping is not that hard with an accounting package. The programme does it for you, you make one entry and with a prompt the programme completes the other, as opposed to manual ledgers where you wrote things in 2 places. gnu cash does the accounting part of things well, but I dont think its stock control is up to it(I have not used stock control but a few years ago mailing lists suggested it was not yet ready) Ken I only want to be able to generate a list of: * Money in this quarter * money out this quarter * parts on hand And in the future, it would be nice to be able to look up invoices for warranty parts based on serial numbers. FOSS or pay for, I don't mind. Emphasis on EASY. I've tried to use MYOB but the ensuing psychiatry is too expensive. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Silly XFCE question
> "Peter" == Peter Chubb <[EMAIL PROTECTED]> writes: Peter> Hi, I've just installed xubuntu 8.10 on a wide-screen laptop. Peter> When I launch an app from the menu or the panel, it always Peter> starts maximised. Worked it out. It's a separate application called devilspie. Got rid of that, and everything's normal again. Peter C -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au http://www.ertos.nicta.com.au ERTOS within National ICT Australia -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] A command question.
> Is there a command that finds a file containing a certain word? > > find and apropos don't. They work on filenames only. grep ... and you can use -r to search through files/directories recursively. - Jeff -- Robot Parade http://www.robotparade.com.au/ m. +61 423 989 818 p. +61 2 9318 0284 f. +61 2 9318 2884 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] A command question.
Is there a command that finds a file containing a certain word? find and apropos don't. They work on filenames only. Using Hardy H. Any suggestions gratefully etc. Bill Bennett -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html