Re: [SLUG] find ot locate binary

2004-11-22 Thread Simon Bryan
Thanks all, prompt advice as always, has got me on the way out of another hole of my own making! :-) On Mon, November 22, 2004 12:43 pm, Erik de Castro Lopo said: On Mon, 22 Nov 2004 11:30:29 +1100 (EST) Simon Bryan [EMAIL PROTECTED] wrote: Hi, If I just want to 'find' or 'locate' a file

RE: [SLUG] find ot locate binary

2004-11-21 Thread Visser, Martin
A quick and dirty reply (using the locate database) export lookfile=gcc;locate $lookfile | grep -e .*/$lookfile$ This will find the file gcc (only). .*/ is greedy and should eat up all directory names up to the last / Of course Jill's find solution will look at the running filesystem whereas

Re: [SLUG] find ot locate binary

2004-11-21 Thread Jamie Wilkinson
This one time, at band camp, Simon Bryan wrote: Hi, If I just want to 'find' or 'locate' a file called xyz rather than all directories and filenames that contain that string what would I enter at the command line? find / -type f -name xyz -- SLUG - Sydney Linux User's Group Mailing List -