Strings

Split strings

#!/bin/bash
 
str="1999.12.31"
 
IFS="." arr=($str)
 
for item in "${arr[@]}"; do
  echo "$item"
done