$ cat run.sh
#!/bin/sh
argc=$#;
argv[0]=$0;
i=1
until [ -z "$1" ]
do
argv[$i]="$1";
i=`expr $i + 1`;
shift
done
for ((i=0; i <= $argc ; i++))
do
echo "$i = ${argv[$i]}"
done
$ sh run.sh a b c d
0 = run.sh
1 = a
2 = b
3 = c
4 = d
되면 한다! / feel no sorrow, feel no pain, feel no hurt, there's nothing gained.. only love will then remain.. 『 Mizz 』
되면 한다! / feel no sorrow, feel no pain, feel no hurt, there's nothing gained.. only love will then remain.. 『 Mizz 』
꽁수...
되면 한다! / feel no sorrow, feel no pain, feel no hurt, there's nothing gained.. only love will then remain.. 『 Mizz 』
되면 한다! / feel no sorrow, feel no pain, feel no hurt, there's nothing gained.. only love will then remain.. 『 Mizz 』
와~ 이런 방법도 있군요..
대단하십니다.. 완전 고수시네요..
답변 정말 감사 드려요^^
댓글 달기