Ejemplo de CASE en BASH

#! /bin/bash # Autor: unlokerd # Licencia GPL # Ejemplo case en bash read -p "Desea continuar: [y/n]" input case $input in [y|Y]) echo "Eligió continuar";; [n|N]) echo "Eligió no continuar";; *) echo "Parámetro introducido incorrecto";; esac
Ejemplo [y/n] en bash usando case

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.