100% Spam Free Email | Contact Us | Products/Services | Korn Shell | MicroEMACS


Mt Xia:
Technical Consulting Group

 

dirname_k93


Contact Mt Xia for help with your shell scripting projects at 615.556.0456 or dfrench@mtxia.com

Current:dirname_k93
Previous:
Home Page



#!/usr/bin/ksh93
################################################################
#### Program: dirname_k93
#### 
#### Description: Emulation of the Unix "dirname" command
#### 
#### Author: Dana French (dfrench@mtxia.com)
####         Copyright 2004
#### 
#### Date: 07/22/2004
#### 
################################################################
function dirname_k93
{
  FNAME="${1}"
  [[ "_${FNAME}" = "_" ]] && read -r -- FNAME
  print -r -- "${FNAME%/*}"
}
################################################################

dirname_k93 "${@}"

 

For information regarding this page, contact Dana French ( dfrench@mtxia.com )
Copyright 2008 by Mt Xia Inc, All Rights Reserved