Element: <move>

Syntax

<!ELEMENT move           (option?, source+, destination)>
<!ATTLIST move
          base           CDATA #IMPLIED>

This element occurs in : Element : <alfs> | Element: <stage> |

See also : Element: <option> | Element: <source> | Element: <destination>

Description

The element move is one of the top-level operation elements. It is used to move one or several source files and/or directories into a destination file or directory.

The sub-element option provides a means to pass an option to the mv command.

[Note] Note

Not all of the mv options are in every implementation. Refer to the documentation for your implementation to determine what options are available.

When processing this element, one moves each source to the destination, using the specified option if present.

The sub-element source contains the name of the source file and its directory.

The sub-element destination contains the name of the destination directory (and, optionally, the filename) for the mv command.

The attribute base gives the name of the directory in which the new directory will be created. See Element : <base>.

Examples

<move>
        <source>/usr/src/mypackage/config.txt</source>
        <destination>/opt/mypackage/config.txt</destination>
</move>

The equivalent bash script is :

echo Move ' /usr/src/mypackage/config.txt /opt/mypackage/config.txt'
mv /usr/src/mypackage/config.txt /opt/mypackage/config.txt