CmdID

CmdID / Commands

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

$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"Identify

Change the $IFS value

IFS=":"

Specify what character to use for word splitting with read

IFS=: read variable1 variable2 ...Identify

Reset $IFS to default

IFS=$' \t\n'

Temporarily change the $IFS value in a subshell

(IFS=":"; echo "one:two:three")Identify