Copy a Set of Files - Windows and UNIX

Copy a Set of Files

This example copies (in text mode, and using the * wildcard) multiple files with one copy.

It assumes that the remote UNIX directory /opt/app/data contains the following list of files:

  • data001.txt
  • data002.txt
  • data003.txt
  • data004.pr
  • data005.pr

The following files will be created on the destination machine:

  • data001.txt
  • data002.txt
  • data003.txt


The truncext attribute is used to instruct UDM to remove file name extensions from the source file prior to using the name as the destination member name.

1 set _echo=yes _halton=warn
2 open unix=sol9 user=top098 pwd=p100m
3 cd unix=/opt/app/data
4 mode type=text
5 attrib local truncext=yes 
6 copy unix=*.txt
7 quit

Components

Universal Data Mover Manager for Windows

Universal Data Mover Manager for UNIX