| ascp: Transferring from the Command Line with Ascp |
130
1.
Transfer everything except files and directories starting with "
.
":
-N '*' -E 'AAA/**'
Results:
AAA/abc/def
AAA/abc/wxy/def
AAA/abc/wxy/tuv/def
AAA/abc/xyz/def/wxy
AAA/wxyfile
AAA/wxy/xyx/
AAA/wxy/xyxfile
< AAA/abc/.def
< AAA/abc/.wxy/def
< AAA/abc/wxy/.def
2.
Exclude directories and files whose names start with
wxy
:
-E 'wxy*'
Results:
AAA/abc/def
AAA/abc/.def
AAA/abc/.wxy/def
AAA/abc/xyz/def/
< AAA/abc/wxy/def
< AAA/abc/wxy/.def
< AAA/abc/wxy/tuv/def
< AAA/abc/xyz/def/wxy
< AAA/wxyfile
< AAA/wxy/xyx/
< AAA/wxy/xyxfile
3.
Include directories and files that start with "
wxy
" if they fall directly under
AAA
:
-N 'wxy*' -E 'AAA/**'
Results:
AAA/wxy/
AAA/wxyfile
< AAA/abc/def
< AAA/abc/.def
< AAA/abc/.wxy/def
< AAA/abc/wxy/def
< AAA/abc/wxy/.def
< AAA/abc/wxy/tuv/def
< AAA/abc/xyz/def/wxy
< AAA/wxy/xyx/
< AAA/wxy/xyxfile
4.
Include directories and files at any level that start with
wxy
, but do not include dot-files, dot-directories, or any
files under the
wxy
directories (unless they start with
wxy
). However, subdirectories under
wxy
will be included:
-N '*/wxy*' -E 'AAA/**'
Results:
AAA/abc/wxy/tuv/
AAA/abc/xyz/def/wxy