$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 and POSIX IDE with support for $IFStry it now!
© 2020–2026 Joachim Ansorg
Imprint
Privacy Policy
Legal