Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Shell Programming/Arrays

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

To assign a value to an element of an array simply do ArrayName[2]=ValueForArrayNameIndex2 To expand the value of an index of an array do ${ArrayName[2]} # This equals 'ValueForArrayNameIndex2' The arrays don't need to be full or compact (i.e. there can be null values between some interval of indexes).