쉘(shell)에서 문자열 쪼개기 (split)
while read line; do # replace line=$(echo $line | sed "s@\[@@g") line=$(echo $line | sed "s@\]@@g") line=$(echo $line | sed "s@ @@g") # substring IFS="," for i in $line do echo $i | sed "s@'@@g" >> $webdir/korea/$checkdat/$checkdate/korea.html echo " " >> $webdir/korea/$checkdat/$checkdate/korea.html done IFS=" " done < $datapath/korea.$checkdate.txt IFS="," 부터 IFS=" "까지가 split 코드이다. line 변수의 문자..