| ascp: Transferring from the Command Line with Ascp |
128
Standard Globbing: Wildcards and Special Characters
/
The only recognized path separator.
\
Quotes any character literally, including itself.
\
is exclusively a quoting operator, not
a path separator.
*
Matches zero or more characters, except "
/
" or the
.
in "
/.
".
?
Matches any single character, except "
/
" or the
.
in "
/.
".
[
…
]
Matches exactly one of a set of characters, except "
/
" or the
.
in "
/.
".
[^
…
]
When
^
is the first character, matches exactly one character
not
in the set.
[!
…
]
When
!
is the first character, matches exactly one character
not
in the set.
[
x
-
x
]
Matches exactly one of a range of characters.
[:
xxxxx
:]
For details about this type of wildcard, see any POSIX-standard guide to globbing.
Globbing Extensions: Wildcards and Special Characters
no
/
or
*
at end of pattern Matches files only.
/
at end of pattern
Matches directories only. With
-N
, no files under matched directories or their
subdirectories are included in the transfer. All subdirectories are still included,
although their files will not be included. However, with
-E
, excluding a directory also
excludes all files and subdirectories under it.
*
or
/**
at end of pattern Matches both directories and files.
/**
Like
*
but also matches "
/
" and the
.
in "
/.
".
/
at start of pattern
Must match the entire string from the root of the transfer set. (Note: The leading
/
does not refer to the system root or the docroot.)
Standard Globbing Examples
Wildcard
Example
Matches
Does Not Match
/
abc/def/xyz
abc/def/xyz
abc/def
\
abc\?
abc?
abc\? abc/D abcD
*
abc*f
abcdef abc.f
abc/f abcefg
?
abc??
abcde abc.z
abcdef abc/d abc/.
[
…
]
[abc]def
adef cdef
abcdef ade
[^
…
]
[^abc]def
zdef .def 2def
bdef /def /.def
[!
…
]
[!abc]def
zdef .def 2def
cdef /def /.def
[:
xxxxx
:]
[[:lower:]]def
cdef ydef
Adef 2def .def
Globbing Extension Examples
Wildcard
Example
Matches
Does Not Match
/**
a/**/f
a/f a/.z/f a/d/e/f a/d/f/ za/d/f
*
at end of rule
abc*
abc/ abcfile