如何在bash中分割分隔符上的字符串
#!/bin/bash -
IN="bla@some.com;john@home.com"
while IFS=';' read -ra ADDR; do
for i in "${ADDR[@]}"; do
echo "$i"
done
done <<<"$IN"
#!/bin/bash -
IN="bla@some.com;john@home.com"
while IFS=';' read -ra ADDR; do
for i in "${ADDR[@]}"; do
echo "$i"
done
done <<<"$IN"