ifs
$IFS (Internal Field Separator) is a special environment variable that defines the delimiter used for word splitting in Unix shells. tldr-pages
On several platforms
Several platforms
$IFS (Internal Field Separator) is a special environment variable that defines the delimiter used for word splitting in Unix shells. The default value of $IFS is a space, tab, and newline. The three characters serve as delimiters.
View the current $IFS value
echo "$IFS"IdentifyChange the $IFS value
IFS=":"Specify what character to use for word splitting with read
IFS=: read variable1 variable2 ...IdentifyReset $IFS to default
IFS=$' \t\n'Temporarily change the $IFS value in a subshell
(IFS=":"; echo "one:two:three")Identify