Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- objetos=( "casa" "perro" "planta" "mesa" )
- echo "Echo elementos del array
- ${objetos[@]}
- "
- echo 'Se modfica el indice 2
- objeto[2]=PLANTA
- '
- objeto[2]=PLANTA
- echo "
- Indice modificado:
- ${objeto[2]}
- Todos los indices
- ${objetos[@]}
- "
- echo "Cantidad de elementos del array:
- ${#objetos[@]}
- "
- echo "Indices que componen el array:
- ${!objetos[@]}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement