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 是一个 支持 $IFS 的 Bash 集成开发工具 – 马上试用!