Setting IFS
Dave Lampe
djl at dplace.UUCP
Tue Mar 28 08:39:30 AEST 1989
In a Bourne shell script I want to set the field separators to the standard
blank, tab, and new-line to make sure that noone has played games. The question
is what is the best looking way to do it? A way that makes it obvious to
someone reading the script what I am doing. The best way I have come up with
is:
IFS="`echo \" \t\n\c\"`" ; export IFS
Does anyone have a better command line?
Dave Lampe
{ames | lll-tis | sun | pyramid}!pacbell!dplace!djl
(415) 455-1571
More information about the Comp.unix.questions
mailing list