TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:6388] Finding files quickly



> That is what I thought, but when I do a locate tar, I get a TON of files with
> tar in the name:
> 
> /usr/X11R6/lib/X11/xfm/bitmaps/app_tar.xbm
> /usr/X11R6/lib/X11/xfm/bitmaps/xfm_tar.xbm
> /usr/X11R6/lib/X11/xfm/pixmaps/app_tar.xpm
> /usr/X11R6/lib/X11/xfm/pixmaps/xfm_tar.xpm
> 
> Anyway to get just the file called tar?

You might try something like 'locate tar|grep bin', which will only print out
entries that have 'bin' in the path..

Of course, maybe there's an easier way to do that..  Also, you can try 'which 
tar', but that only works on executable files in your PATH..

-- 
.------ ----- ---- ---- --- --- -- -- - -  -   -    -
|               Mike Hicks | Linux User Since: 1.2.13
: http://umn.edu/~hick0088 | mailto:hick0088@tc.umn.edu
`              icq:6883760 | Current Kernel: 2.2.9