Revision [1648]
This is an old revision of Commands made by DavidLee on 2010-12-22 05:39:36.
Commands
The following commands come with xmlsh.
As a naming convention, commands that start with "x" operate intrinsically on xml data (either as input or output and usually both).
Commands not starting with "x" generally don't operate on xml data exclusively (either as input or output).
Commands where Streaming is "Yes" are fully streamable in the sense that a fixed amount of memory is used regardless of the input size, and output can appear before the input has been completely read.
Note: if your xmlsh scripts include only commands from this list they will be portable across all OS's which support xmlsh and have no dependency on OS commands.
Command | Set | Streaming | Description | |||
---|---|---|---|---|---|---|
: | Core | The null command ":" | ||||
[ | Core | Evaluates expressions | ||||
base64 | Posix | Yes | Base64 encode/decode | |||
break | Core | Exits one level of a loop | ||||
cat | Posix | Yes | copy or concatenate files | |||
cd | Core | change or print current directory | ||||
chmod | Posix | Change file permissions | ||||
cp | Posix | Yes | copy one or more files | |||
continue | Core | Continues the iteration of one level of a loop | ||||
csv2xml | Core | Yes | convert csv file to xml | |||
declare | Core | Declarations (including namespaces) | ||||
echo | Core | Prints arguments as text | ||||
eval | Core | Evaluate a shell command | ||||
exit | Core | exit the shell, script, or function | ||||
false | Core | returns false | ||||
fixed2xml | Core | Yes | convert fixed field files to xml | |||
help | Core | Help on commands | ||||
http | Core | Http client command | ||||
httpserver | Core | Http server | ||||
httpsession | Core | Get and set HTTP session variables | ||||
import | Core | Import modules, packages and commands | ||||
jcall | Core | call java from within the same JVM | ||||
jset | Core | Set a variable by calling a java method | ||||
jobs | Core | prints jobs | ||||
log | Core | Writes to log4j log | ||||
ls | Posix | list files in a directory | ||||
mkdir | Posix | Create directories | ||||
more | Posix | Yes | Simple pagenator | |||
mv | Posix | Move/Rename files | ||||
pwd | Posix | print current working directory | ||||
read | Core | reads text into a variable | ||||
return | Core | Returns from a function | ||||
require | Core | Checks the current shell for a specified minimum version | ||||
rm | Posix | Remove/Delete files | ||||
rmdir | Posix | Remove/Delete directories | ||||
rngconvert | Core | Converts to and from RNG schema formats | ||||
rngvalidate | Core | Validates with an RNG schema | ||||
schematron | Core | Validates with a schematron description | ||||
set | Core | set positional parameters and view variables | ||||
shift | Core | shift positional parameters | ||||
sleep | Posix | Delay execution | ||||
source (.) | Core | Executes a script within the current shell | ||||
tee | Posix|Yes | |Read from standard input and write to standard output and files | test | Core | Evaluates conditional expressions (strings, files, numbers) | |
touch | Posix | create and update timestamp of a file | ||||
tie | Core | Ties an xquery to a variable for ease of access | ||||
true | Core | returns true | ||||
unset | Core | Unset a variable | ||||
wait | Core | wait for jobs to complete | ||||
xaddattributre | Core | Adds or replaces an attribute to nodes matching an expression | ||||
xaddbase | Core | Add xml:base attributes to a document | ||||
xbase | Core | extract the base URI from a document or node | ||||
xcat | Core | Yes | concatenate XML documents | |||
xcmp | Core | Yes | compare text, binary or xml | |||
xdelattribute | Core | Yes | delete attributes | |||
xdelete | Core | Deletes nodes or attributes matching an expression | ||||
xecho | Core | Prints arguments as xml | ||||
xed | Core | xpath based xml edit | ||||
xfile | Core | file name manipulations | ||||
xgetopts | Core | parse arguments into xml | ||||
xgrep | Core | Search for patterns in files | ||||
xidentity | Core | Yes | Outputs an identical copy of the input | |||
xinclude | Core | runs xinclude preprocessing on an xml file | ||||
xls | Core | list files in a directory | ||||
xmd5sum | Core | Yes | MD5 sum of file(s) | |||
xml2csv | Core | convert xml to csv | ||||
xmove | Core | Rename/Move xml files to a new filename based on an expression in the file | ||||
xpath | Core | run xpath version 2.0 expressions on an xml document | ||||
xmlsh | Core | Run a sub shell | ||||
xpwd | Core | prints the current directory | ||||
xproperties | Core | parse or generate Java Properties files | ||||
xquery | Core | runs xquery scripts on an xml document | ||||
xquote | Core | Converts an XML expression into a String | ||||
xread | Core | Reads an XML document into a variable | ||||
xsdvalidate | Core | Validates against one or more W3C XSD schemas | ||||
xsql | Core | query a relational database using jdbc | ||||
xslt | Core | runs xslt version 2.0 transformations | ||||
xslt1 | Core | runs xslt version 1.0 transformations | ||||
xsplit | Core | Yes | splits an XML file into multiple files | |||
xsysinfo | Experimental | prints system information | ||||
xtee | Core | Yes | copies input to multiple outputs | |||
xtype | Core | prints the XDM type of each argument | ||||
xuri | Core | create and disect URI's | ||||
xurldecode | Core | Decode arguments (or stdin) from urlencoded to text | ||||
xurlencode | Core | Encode arguments (or stdin) from text to urlencoded | ||||
xunquote | Core | Converts (parses) a string into an XML expression | ||||
xunzip | Core | Yes | Extracts zip archives | |||
xvalidate | Core | validate a document against a schema | ||||
xversion | Core | prints the shell version | ||||
xwhich | Core | Locates commands | ||||
xzip | Core | Yes | Creates zip archives |
See Also Functions