Encyclopedia

internal field separators

internal field separators

(operating system)
($IFS) A predefined environment variable in the Unix Bourne shell whose default value is the three-character string containing space, tab and line feed. Any string of one or more of these characters separates the command and each of its arguments in a command line.

$IFS also tells the shell's built-in read command where to split an input line when reading into multiple variables. E.g. setting IFS=: would be appropriate for reading a file with ':'-separated fields, such as /etc/passwd.
This article is provided by FOLDOC - Free Online Dictionary of Computing (foldoc.org)
Mentioned in
Copyright © 2003-2025 Farlex, Inc Disclaimer
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional.