Linux shell
https://www.cnblogs.com/chengmo/archive/2010/10/02/1841355.html
替换单引号
schemas=${schemas//\'/''}
循环
OLD_IFS="$IFS"
IFS=","
arr=($a)
IFS="$OLD_IFS"
for s in ${arr[@]}
do
echo "$s"
done
https://www.cnblogs.com/chengmo/archive/2010/10/02/1841355.html
替换单引号
schemas=${schemas//\'/''}
循环
OLD_IFS="$IFS"
IFS=","
arr=($a)
IFS="$OLD_IFS"
for s in ${arr[@]}
do
echo "$s"
done