Avatar of hexo dark
hexo dark

asked on 

Bash shell linux : how to create a config files For my script


i create this for the moment on my bash shell
 echo ""
echo "SD (480) HD (720) FHD (1080)"
echo ""
while true; do
    read -p "quelle résolution télécharger" rez
    case $rez in
        [480]* )  python ./files/SD.py; break;;
        [720]* )  python ./files/HD.py; break;;
        [1080]* ) python ./files/FHD.py; break;;
        * ) echo "répondé a cette question pour continuer";;

Open in new window

it work  I would rather want to create a file configuration so that my script takes the resolution wanted without intervention

Linux Distributions

Avatar of undefined
Last Comment
hexo dark

8/22/2022 - Mon