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
- port
- Windows 10
- profile
- tomcat
- xargs
- ssh
- JavaScript
- Quartz
- VirtualBox
- context
- GIT
- find
- 줄바꿈 문자
- plugin
- resource
- 단축키
- lsof
- Eclipse
- grep
- Source
- bash
- web.xml
- vscode
- netsh
- Windows
- maVen
- Mac
- 네트워크
- import
- IntelliJ
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 |