Revision [928]

This is an old revision of CommandXfile made by DavidLee on 2009-11-24 18:01:54.

 

Command xfile


Name

xfile file name manipulations



Synopsis

xfile [ serialization options ] [options] [filename [base]]

options are one of

-base base
-b base
-basename
-B base
-name
-n name
(without directory component)
-fullname
-N name
-dir
-d directory
-absolute
-a
absolute path
-cannonical
-c
cannonical path
-extension
-e
extension
-uri
-u
outputs a file scheme URI


Supports the standard [ serialization options ]

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

Result
c:\work\dei\xmlsh\trunk\foo.bar


xfile -e $PWD/foo.bar

Result
.bar

Return Value

Returns 0 if the command executed successfully, 1 if there was an error.

Commands
CategoryCommands


There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki