UNIX shell array for loop,for loop内部でcurlを呼び出す


1.UNIX shell array for loop、for loop内部でcurlを呼び出す
  • ARRAYをforループゲートに変換します.
  • forループ呼び出しcurl呼び出し
  • ARRAY
  • から
    2. source
    ARRAY = (
    	"ABC" "BCD" "CDE"
    
    )
    
    for ARRAY in ${ARRAY[@]};
    do
    	echo "${ARRAY}
    done
    
    ARRAY = (
    	"ABC" "BCD" "CDE"
    )
    
    for ARRAY in ${ARRAY[@]};
    do
    	curl --xxx '{\"param1\":\"TEST\", \"param2\":\"${ARRAY}\"'
    done