Duplicació de descriptors en Bash

The site directory migrate module is currently enabled, unless you are doing the migration right now, there's no reason to leave it enabled.

Si quan realitzem un script necessitem duplicar o moure un descriptor de la taula
de descriptor es pot realitzar de manera senzilla.

#!/bin/bash
/bin/umount $1 2>&1 | tee /tmp/umount.txt

Per exemple el següent script redirigeix la eixida d'error a un fitxer.
Tanca el descriptor de l'eixida estandar i copia el d'error.

Els següents links proporcionen més informació sobre pipes i redireccions en bash.
Dale potencia a tus bourne-shell scripts
Tuberías y Redirecciones