Bash menu, in order to get faster access to your scripts

Bash menu, in order to get faster access to your scripts

If you want to have in the Bash, then you can create this type of menu in the Bash.

Bash menu in the command line. In my case you open a data file, to update your pc, shutdown the pc
Bash script

Here is the script

#!/bin/bash
clear

#printing the current date
datum=$(date --utc --date "$1" +%x)

echo $datum



PS3="SELECT 1 for WordPress statify file, 2 PC-updates 3 shutdown 4 exit "

items=("Statisc LO file" "Update the pc" "Shutdown")

select item in "${items[@]}" Quit
do
    case $REPLY in
        1) libreoffice  $HOME/Privat/Dateien/Wordpress_Blog_Aufrufe_mit_Statify.ods;;
        2) sudo bash $HOME/Linux_PC/Programmieren/Bash/aktu_Bash.sh;;
        3) bash $HOME/Linux_PC/Programmieren/Bash/herunterfahren.sh;;
        $((${#items[@]}+1))) echo "We're done!"; break;;
        *) echo "Ooops - unknown choice $REPLY";;
    esac
done
Die Kommentare sind geschlossen.