2.
declare -a distance_arr function add_distance() { local today="$1" local total="0" distance_arr+=($today) for distance in "${distance_arr[@]}" do let "total += distance" done echo $total }
본문으로
엄선한 추천 도서와 신규 콘텐츠를 이메일로 보내드립니다.새로운 책이 등록될 때마다 소식을 받아보세요.