Revision [368]
This is an old revision of CommandXfile made by DavidLee on 2009-01-05 04:07:02.
Name
xfile file name manipulationsSynopsis
xfile [options] [filename [base]]options are one of
Unknown action; the action name must not contain special characters.
-base base (without directory component)
-b
-B base (with directory component)
-name
-n name (without directory component)
-fullname
-N name (exactly as given, including directory if present)
-dir
-d directory
-absolute
-a absolute path
-cannonical
-c cannonical path
-extension
-e extension
If [filename] is ommitted the current directory is used
if [base] is provided then it is added as a new component to the filename prior to executing the options
Description
Prints a component of a filename or path.Example:
$ xfile -a foo.bar c:\work\dei\xmlsh\trunk\foo.bar
$ xfile -e $PWD/foo.bar .bar
Return Value
Returns 0 if the command executed successfully, 1 if there was an error.CategoryCommands
CommandsInternal