Input Field Separators
For many command line interpreters (“shell”) of Unix operating systems, the input field separators or internal field separators or shell variable holds characters used to separate text into tokens.[src] The value of , (in the bash shell) typically includes the space, tab, and the newline characters by default.[src] These whitespace characters can be visualized by issuing the "declare" command in the bash shell or printing with commands like printf %s "$IFS" | od -c , printf "%q\n" "$IFS" or printf %s "$IFS" | cat -A (the latter two commands being only available in some shells and on some systems).[src] From the Bash, version 4 man page: The shell treats each character of as a delimiter, and splits the results of the other expansions into words on these characters.[src] If is unset, or its value is exactly , the default, then sequences of , , and at the beginning and end of the results of the previous expansions are ignored, and any sequence of characters not at the beginning or end serves to delimit words.[src] If has a value other than the default, then sequences of the whitespace characters and are ignored at the beginning and end of the word, as long as the whitespace character is in the value of (an whitespace character).[src] Any character in that is not whitespace, along with any adjacent whitespace characters, delimits a field.[src] A sequence of whitespace characters is also treated as a delimiter.…[src]
For many command line interpreters (“shell”) of Unix operating systems, the input field separators or internal field separators or shell variable holds characters used to separate text into tokens.[src] The value of , (in the bash shell) typically includes the space, tab, and the newline characters by default.[src] These whitespace characters can be visualized by issuing the "declare" command in the bash shell or printing with commands like printf %s "$IFS" | od -c , printf "%q\n" "$IFS" or printf %s "$IFS" | cat -A (the latter two commands being only available in some shells and on some systems).[src] From the Bash, version 4 man page: The shell treats each character of as a delimiter, and splits the results of the other expansions into words on these characters.[src] If is unset, or its value is exactly , the default, then sequences of , , and at the beginning and end of the results of the previous expansions are ignored, and any sequence of characters not at the beginning or end serves to delimit words.[src] If has a value other than the default, then sequences of the whitespace characters and are ignored at the beginning and end of the word, as long as the whitespace character is in the value of (an whitespace character).[src] Any character in that is not whitespace, along with any adjacent whitespace characters, delimits a field.[src] A sequence of whitespace characters is also treated as a delimiter.[src] If the value of is null, no word splitting occurs.[src] ==References==[src]
18 sentences · 18 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Input Field Separators." encyclopegia.org, 2026, https://encyclopegia.org/wiki/input-field-separators. Accessed 25 November 2026.
Chicago
"Input Field Separators." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/input-field-separators.
APA
encyclopegia.org. (2026). Input Field Separators. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/input-field-separators
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON