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:
- -r <flag>, --recursive <flag>
Prints directory content recursively. (Valid flag values are
false
,no
,0
,true
,yes
or1
)
- -x <flag>, --ignoreerrors <flag>
Ignores file i/o errors occurring during the output process (otherwise the script will be aborted). (Valid flag values are
false
,no
,0
,true
,yes
or1
)
- -i <pattern(s)>, --include <pattern(s)>
Only print files 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