Revision [934]

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


Command xfile


xfile file name manipulations


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

options are one of

basename of file without directory or extension
basename of file with directory but without extension
name of file without directory
-N name
exactly as given, including directory if present but converted to java format
Directory component
absolute path
cannonical path
extension only including the "."
outputs a file scheme URI
-sConverts the filename to local system notation otherwise outputs Java notation

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


Prints a component of a filename or path.

xfile -a


xfile -e $PWD/


Windows Notes

On Windows systems, the output filename is converted to the Java notation unless the -s argument is given. This changes \ to / but preserves any drive letter.

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