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 是一个 支持 $IFS 的 Bash 集成开发工具 – 马上试用!
© 2020–2022 Joachim Ansorg
声明
隐私政策
许可条款