[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: which whichy



edd@miles:~> which which
/usr/local/bin/which

edd@miles:~> file `which which`
/usr/local/bin/which: Bourne shell script text

edd@miles:~> cat `which which`
#!/bin/sh
type -path $@                          

Someone mentioned this some months ago on debian-user. Works like a charm.
It is now included in the debian-utils package.

And now the Helpful Hint of the Day (TM pending :-) if you mirror, or ftp
frequntly from a mirror, check the file
		debian/unstable/Contents.gz
which can easily be zgrep'ed:

edd@miles:~> zgrep which /mirror/debian/unstable/Contents.gz
GNU/Linux system to the package from which it originates.  Please note that
You can use this file to determine which package contains a specific file,
out on an installed Debian system which package(s) provided a particular
usr/bin/kpsewhich                                            kpathsea
usr/bin/which                                                debian-utils
usr/bin/ypwhich                                              nis
usr/doc/examples/python/Tools/scripts/which.py               python
usr/doc/python/whichlibs.gz                                  python
usr/lib/irc/help/which.gz                                    ircii    

-- 
Dirk Eddelb"uttel                              http://qed.econ.queensu.ca/~edd


Reply to: