Advertisement
sergio_educacionit

arrays.sh

Jan 6th, 2024
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. array_datos=(elemento1 elemento2 elemento3)
  2.  
  3. echo "Elemento 1 2 3 "
  4. echo "Indice 0 1 2 "
  5. echo "array_datos=(elemento1 elemento2 elemento3)
  6. "
  7.  
  8. echo echo \${array_datos[1]} ${array_datos[1]}
  9. echo echo \${array_datos[@]} ${array_datos[@]}
  10. echo echo \${array_datos[-1]} ${array_datos[-1]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement