Element: <move>

Syntax


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

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

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

Description

The element move is one of the many main 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 is an option of the mkdir command:

.

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

The sub-elements source contains the name(s) of the directory were the source file is.

The sub-element destination contains the name of the destination directory for the mv command.

The attribute base gives the name of the directory in which the new directory will be created.

When the attribute base is specified, it should contain the name of the current directory from which the move operation is performed.

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