🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: sub.sources.minix
1 messages
1 total messages Started by Jan-Hinrich Fessel Fri, 10 Mar 1989 16:56
which
#1
Author: Jan-Hinrich Fessel
Date: Fri, 10 Mar 1989 16:56
64 lines
2443 bytes

Hi out there!

This is The Ultimate Solution for those of you who always wanted
to know which program they have executed:-)

BTW, can anyone repost the first part of alltar.*, it seems it 
never reached Europe (maybe it was larger than 100k?).
If it is larger than 100k, please split it in order to cross the atlantic


#! /bin/sh
# This is a shell archive.  Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file".  To overwrite existing
# files, type "sh file -c".  You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g..  If this archive is complete, you
# will see the following message at the end:
#		"End of shell archive".
# Contents:  which 
# Wrapped by jf@unido
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f which -a "${1}" != "-c" ; then
  echo shar: Will not over-write existing file \"which\"
else
  echo shar: Extracting \"which\"
  sed '/^X/s///' > which << '/_SHAR_EOF_'
X: List all system directories containing the argument
X: Author: Jan-Hinrich Fessel
Xif test $# -ne 1; then
X  echo "Usage:  which  name"
X  exit 1
Xfi
X
Xecho
Xecho -n $1 :' '
Xpath="`echo $PATH | tr 'A-Za-z/:' 'A-Za-z/ '`"
X
Xfor dir in $path; do
X  for file in $dir/$1 $dir/$1.*; do
X    if test -f $file; then
X      echo $file 
X      echo
X      exit 0
X    fi
X  done
Xdone
Xecho No $1 in $path
Xecho
Xexit 1
X
X
/_SHAR_EOF_

fi
# End of overwriting check

echo shar: end of shell archive
exit 0

			      Jan-Hinrich Fessel
	Universitaet Dortmund, IRB	jf@unido.uucp  ||  jf@unido.bitnet
	There's no way to delay that trouble comin' every day... F.Z.
 ============================================================================= 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads