Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikibooksThe Free Textbook Project
Search

Shell Programming/Arrays

From Wikibooks, open books for an open world
<Shell Programming
This page may need to bereviewed for quality.

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).

Retrieved from "https://en.wikibooks.org/w/index.php?title=Shell_Programming/Arrays&oldid=1983141"
Category:

[8]ページ先頭

©2009-2025 Movatter.jp