Revision [775]

This is an old revision of CommandXfile made by DavidLee on 2009-09-16 07:58:51.


Command xfile


xfile file name manipulations


xfile [options] [filename [base]]

options are one of

-base base (without directory component)

-B base (with directory component)

-n name (without directory component)

-N name (exactly as given, including directory if present)

-d directory

-a absolute path

-c cannonical path

-e extension

-u outputs a file scheme URI

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


Prints a component of a filename or path.

$ xfile -a

$ xfile -e $PWD/

Return Value

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


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