l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
January 6: Social gathering
Next Installfest:
TBD
Latest News:
Nov. 18: Club officer elections
Page last updated:
2003 Mar 22 21:31

The following is an archive of a post made to our 'vox mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox] directories - too much of a good thing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox] directories - too much of a good thing?



On Sat, Mar 22, 2003 at 03:53:40PM -0800, Katie wrote:
> then I moved the school stuff over to my programs directory and had to
> create tons of directories to keep it all separate, but when I want to
> compare two programs I have to do some major hunting.
[...]
> How do you break up this directory so it's organized but you can still
> find stuff?

- Could you explain what sort of layout you made in that combined
  programming directory, that is hard to find things?

  school/class/proj1 (style Samuel mentioned), sounds really good

  maybe do cs/year/proj1 style if you don't take many classes... all you
need to remember is what year you did things.

I normally have a few directories:
  src    - my personal programs
  debian - things I've done 'apt-get source' on
  cvs    - things I've checked out of other CVS trees

> Even locate won't
> work because I can't remember what names I used for the older school
> programs or what project number they were in.

  Generally when I know I wrote some program to do something related,
but I don't remember what it's called or where I put it I do something 
like this to find something like "foobar":

  find ~/src -print0 | xargs -0 grep -i "foobar" | less

  You have to remember some magic string from the program like what
function calls it _had_ to made to do whatever, or some string or
variable you would have used in it.
  The find generates a list of files in my src directory, the grep 
prints out matched lines... I can then cd into directories that look
promising...

  Sometimes I change the grep a bit, add -l will only list file names,
-3 will give me three lines of context before and after the math.

    Later,
      Mike
_______________________________________________
vox mailing list
vox@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.