Annotated edit history of
IFS version 1, including all changes.
View license author blame.
| Rev |
Author |
# |
Line |
| 1 |
BenStaz |
1 |
!$IFS internal field separator |
| |
|
2 |
|
| |
|
3 |
This variable determines how Bash recognizes fields, or word boundaries when it interprets character strings. |
| |
|
4 |
$IFS defaults to whitespace (space, tab, and newline), but may be changed. |
| |
|
5 |
|
| |
|
6 |
!Have multiple characters as field separators. |
| |
|
7 |
|
| |
|
8 |
*IFS='~[<listofchars>]' |
| |
|
9 |
|
| |
|
10 |
Example using the ''read'' command: |
| |
|
11 |
|
| |
|
12 |
*IFS='~[:=,]'; read foo bar moo car <<< '123:abc=345,def'; echo $foo $bar $moo $car |