Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- web.xml
- Windows 10
- 공통표준용어
- Windows
- JavaScript
- xargs
- maVen
- copy-dependencies
- GIT
- port
- VirtualBox
- context
- DB 도메인
- grep
- ssh
- profile
- 네트워크
- tomcat
- Mac
- Quartz
- IntelliJ
- lsof
- Eclipse
- Source
- resource
- import
- netsh
- 단축키
- bash
- find
Archives
- Today
- Total
develog
[Linux] shell script, array, loop 본문
#/bin/bash
list=()
list+=(aa)
list+=(bb)
list+=(cc)
len=${#list[@]}
idx=0
while [ $idx -lt $len ];
do
echo ${list[$idx]}
let "idx += 1"
done
'OS & Shell > Linux' 카테고리의 다른 글
[Linux] awk (0) | 2015.03.03 |
---|---|
[Linux] 날짜 검색 (0) | 2015.01.14 |
[Linux] ssh, mkdir (0) | 2015.01.12 |
[Linux] vi, clear last search highlight (0) | 2015.01.12 |
[Linux] shell script, 블록 입력 (0) | 2015.01.10 |
Comments