Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Robert Klemme Newsgroups: comp.lang.java.programmer Subject: Re: code base(not a technical question) Date: Thu, 25 Aug 2011 10:49:49 +0200 Lines: 38 Message-ID: <9bmgliF9erU1@mid.individual.net> References: <5a3429f6-8b58-423a-a51b-13c66e5db4ac@glegroupsg2000goo.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 9fq0s4q9JXNo+B6qj6YgAATyxve6sH4UMj3oayrRSS/2Abzro= Cancel-Lock: sha1:En8hYs5aaxLskqbwcujclObu3NM= User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0 In-Reply-To: <5a3429f6-8b58-423a-a51b-13c66e5db4ac@glegroupsg2000goo.googlegroups.com> Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7367 On 24.08.2011 21:03, Asit Dhal wrote: > Thank you everybody for reading my query and suggesting me. > > This is what I do now. > I have a folder named Java. In this folder code snippets are stored in small text files. File name is what the snippet is about. > e.g.:- > CounDownLatch.java > HorseRace.java > SingletonThreaSafe.java > > What I need is every file should be associated with some index > string, which is search able. > > Again grep can't help me as I use Windows 7 for development > environment. You can use "find" for that in the Windows shell. However, I would just create an Eclipse project where I put all those files and use Eclipse's text search (which is pretty fast). You could even do something like /* * Search index * * keyword: thread * keyword: list */ somewhere in the file and then do a regexp search for "keyword:\s*thread" Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/