Saturday, January 5, 2013

bash 에서 while 문으로 command line argument 를 loop 하는 법

 for num  
 do  
   echo $num  
 done  
for num; do ...
for num in "$@"; do ... 는 동일.
How to loop through arguments in Bash ($1 $2 $3 and so forth)?

No comments:

Post a Comment