less than 1 minute read

#!/bin/bash

YMD=$(date +%Y%m%d%H%M%S)

array=($(sh ../count_listener.sh awk ‘{print $2}’))  #명령을 배열로 만듬

cnt=${#array[@]} # 배열 갯수

for str in “${array[@]}”  #배열 루프 do         echo “${str}” >> status.${YMD}.log         ../../bin/sqlr-status -id ${str} | grep Total >> status.${YMD}.log done


🔗original-link

Updated: