begin quoting Chuck Esterbrook as of Sat, Apr 14, 2007 at 09:44:19AM -0700: > In a bash script, I can use $0 for the current "path/name" of the > script. Can I get just the path of the script? Is there a quick way to > strip off the script name for example?
The command is "dirname". Various shells / scripting languages might have built-in features as well. In tcsh, for example adding :h to the variable expansion does what you want, I think. -- There really should be a cross-reference from man basename to man dirname. Stewart Stremler -- [EMAIL PROTECTED] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
