Ver Mensaje Individual
  #7 (permalink)  
Antiguo 09/10/2005, 13:52
GermanBsAs
 
Fecha de Ingreso: septiembre-2004
Mensajes: 252
Antigüedad: 20 años, 4 meses
Puntos: 0
necesita permiso de ejecucion para que funcione...

chmod +x loquesea
./loquesea



Código:
#!/bin/sh


select OPCION in "Borrar historial" "Editar historial" "ver historial" "ver historial numerado" "Salir";do
	case $OPCION in
	"Borrar historial")
	rm $HOME/.bash_history
		;;
	"Editar historial")
		nano $HOME/.bash_history
		;;
	"ver historial")
		cat $HOME/.bash_history
		;;
	"ver historial numerado")
		cat -n $HOME/.bash_history		
		;;
	"Salir")
	
	break;
	;;
	*)
		echo $REPLY no aparece en el menu de opciones
		;;
	esac

done
si no queres borrar, podes limpiar el history con
echo "" > $HOME/.bash_history

Última edición por GermanBsAs; 09/10/2005 a las 14:23