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