Last active
December 6, 2016 00:42
-
-
Save Makova/187849b196323b67b8d53db5748eda76 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Hola Mundo" | |
hola=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Asignando variables | |
hola=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Asignando variables | |
hola=1 | |
#Llamando a la variable $hola | |
$hola | |
#Mostrando el contenido de la variable | |
echo $hola |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Se guarda en la variable el valor generado por $RANDOM, | |
#el % 5 asegura obtener un número menor a 5. | |
RNM=`expr $RANDOM % 5` | |
echo $RNM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment