L Linux tux Utente Silver 27 Settembre 2020 97 31 19 65 16 Dicembre 2020 #1 Ciao a tutti, sto imparando il bash e ho una domanda, esiste come in python l'operatore in tipo: Bash: stringa='ciao come stai' if['ciao' in stringa] then echo 'bene' fi grazie
Ciao a tutti, sto imparando il bash e ho una domanda, esiste come in python l'operatore in tipo: Bash: stringa='ciao come stai' if['ciao' in stringa] then echo 'bene' fi grazie
D DispatchCode Moderatore 24 Maggio 2016 501 14 378 249 16 Dicembre 2020 #2 Esiste case...esac, https://tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_03.html Puoi guardare anche qui ad esempio: https://unix.stackexchange.com/questions/447430/is-there-an-in-operator-in-bash-bourne
Esiste case...esac, https://tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_03.html Puoi guardare anche qui ad esempio: https://unix.stackexchange.com/questions/447430/is-there-an-in-operator-in-bash-bourne
L Linux tux Utente Silver 27 Settembre 2020 97 31 19 65 17 Dicembre 2020 #3 DispatchCode ha detto: Esiste case...esac, https://tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_03.html Puoi guardare anche qui ad esempio: https://unix.stackexchange.com/questions/447430/is-there-an-in-operator-in-bash-bourne Clicca per espandere... grazie mille proverò
DispatchCode ha detto: Esiste case...esac, https://tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_03.html Puoi guardare anche qui ad esempio: https://unix.stackexchange.com/questions/447430/is-there-an-in-operator-in-bash-bourne Clicca per espandere... grazie mille proverò