ucat – Printing files

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:

urls

One or more URLs to be printed.

-r <flag>, --recursive <flag>

Prints directory content recursively. (Valid flag values are false, no, 0, true, yes or 1)

-x <flag>, --ignoreerrors <flag>

Ignores file i/o errors occuring during the output process (otherwise the script will be aborted). (Valid flag values are false, no, 0, true, yes or 1)

-i <pattern(s)>, --include <pattern(s)>

Only print files whose name matches one of the specified patterns.

-e <pattern(s)>, --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