The sed command can also be used to split string data. The syntax for this command is:
sed 's/delimiter/\n/g'
sed 's/:/\n/g' <<< $PATH
In this case, g stands for global. It means that the substitution has to be globally, that is, for any occurrence. The example above shows how sed command is used to split string data using colon as a delimiter.