IFS: Characters to separate fields

The shell uses each character of the IFS variable as a separator during word splitting.

Examples

IFS to split a word
1
2
3
var1="a+b+c"
IFS=+
echo $var1
BashSupport Pro is a Bash IDE with support for $IFS – try it now!
© 2020–2022 Joachim Ansorg
Imprint
Privacy Policy
Legal