Set Bash Loop Delimiter (Linux)

From ben.goodacre.name/tech

Jump to: navigation, search

BASH loops use a space as a delimiter by default but this is not useful when iterating through lines in a text file for instance. The environment variable $IFS sets the delimiter.

Set the bash loop delimiter to a new line:

IFS=$'\n'
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox