MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 216.73.216.89
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/share/doc/procmail-3.22/examples/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/doc/procmail-3.22/examples/dirname
#! /bin/sh
: &&O='cd .' || exec /bin/sh "$0" $argv:q # we're in a csh, feed myself to sh
$O || exec /bin/sh "$0" "$@"		  # we're in a buggy zsh
#########################################################################
#	dirname		A substitute, for the deprived			#
#									#
#	Created by S.R. van den Berg, The Netherlands			#
#########################################################################
#$Id: dirname,v 1.3 1994/05/26 14:11:52 berg Exp $

t=`expr "$1" : "\(.*/\)[^/]*$"`

if test -z "$t"
then
  echo .
else
  echo "$t"
fi

MMCT - 2023