Purpose
ucat is a script for printing files. It is an URL-enabled version of the
cat system command. Via ll.url and ll.orasql ucat supports
ssh and oracle URLs.
Options
ucat supports the following options:
urlsOne or more URLs to be printed.
-r,--recursive(false,no,0,true,yesor1)Prints directory content recursively.
-x,--ignoreerrors(false,no,0,true,yesor1)Ignores file i/o errors occuring during the output process (otherwise the script will be aborted).
-i,--include(pattern(s))Only print files whose name matches one of the specified patterns.
-e,--exclude(pattern(s))Don't print files whose name matches one of the specified patterns.
--enterdir(pattern(s))Only enter directories whose name matches one of the specified patterns.
--skipdir(pattern(s))Don't enter directories whose name matches one of the specified patterns.
Examples
Print a file:
$ ucat foo.txt
Print a remote file:
$ ucat ssh://user@www.example.org/~/foo.txt
Print the SQL source code of the procedure FOO in an Oracle database:
$ ucat oracle://user:pwd@oracle.example.org/procedure/FOO