Script Cambiando de directorios interactivamente

d
Autor: |Leo Gutiérrez R.
Descripción: Script para cambiar de directorios interactivamente.
 Mail: leorocko13[at]hotmail


#!/bin/bash - 
#===============================================================================
#
#          FILE:  cdprompt.sh
# 
#         USAGE:  ./cdprompt.sh 
# 
#   DESCRIPTION:  Cambio de directorios interactivamente.
# 
#       OPTIONS:  ---
#  REQUIREMENTS:  ---
#          BUGS:  ---
#         NOTES:  ---
#        AUTHOR: |Leo Gutiérrez R.| (), |leorocko13[at]hotmail|
#       COMPANY: 
#       CREATED: 02/26/2011 01:51:28 AM CST
#      REVISION:  ---
#===============================================================================
 
select directorio in */ "SALIR"
do
 if [ "$directorio" = "SALIR" ]
 then
  break;
 elif [[ -n "$directorio" ]]
 then
  cd "$directorio"
  break;
 else 
  echo -e "\aError de opción.";
  break;
 fi
done

0 comentarios: