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
- netsh
- resource
- maVen
- Eclipse
- grep
- Windows 10
- JavaScript
- Windows
- context
- ssh
- bash
- xargs
- web.xml
- import
- VirtualBox
- IntelliJ
- plugin
- vscode
- profile
- Source
- tomcat
- 네트워크
- Quartz
- lsof
- port
- GIT
- find
- 줄바꿈 문자
- Mac
- 단축키
Archives
- Today
- Total
develog
[bash] array 를 다른 script 로 전달 본문
aa.sh
array=(66 77 88 99)
./bb.sh 'cc' 'dd' ${array[@]}
bb.sh
param1=$1
param2=$2
shift
shift
list=($@)
echo param1 = $param1
echo param2 = $param2
for i in ${list[@]}
do
echo i = $i
done
aa.sh 실행
$ ./aa.sh
param1 = cc
param2 = dd
i = 66
i = 77
i = 88
i = 99
Comments