IFS: Characters to separate fields
The shell uses each character of the IFS
variable as a separator during word splitting.
Links
- IFS in the Bash manual
- POSIX specification on field splitting
- Advanced Bash–Scripting Guide: $IFS
- Advanced Bash–Scripting Guide: $IFS and whitespace
- Advanced Bash–Scripting Guide: $* and $@ when $IFS is empty
- Wikipedia: Internal field separator
Examples
- IFS to split a word
|
|
BashSupport Pro is a Bash IDE with support for $IFS – try it now!