Newsgroups: comp.unix.shell
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!odin!chet
From: chet@odin.INS.CWRU.Edu (Chet Ramey)
Subject: Re: Changing the IFS in sh.
Message-ID: <1991Jun7.210505.21343@usenet.ins.cwru.edu>
Sender: news@usenet.ins.cwru.edu
Nntp-Posting-Host: odin.ins.cwru.edu
Reply-To: chet@po.CWRU.Edu
Organization: Yoyodyne Propulsion Systems, Inc.
References: <1260@sys.uea.ac.uk>
Distribution: comp
Date: Fri, 7 Jun 91 21:05:05 GMT
Lines:       19

>I know how to change the IFS in the Bourne Shell to "::", say,
>BUT I would like to change it from "<space><tab><newline>"
>to "<newline>". Is this possible ? I've tried IFS="\013"
>& IFS="\n" to no avail.

Try

IFS='
'

where there is a literal newline between the single quotes.

Chet
-- 
                    ``You shoot John Sununu.  Twice.''

Chet Ramey			  Internet: chet@po.CWRU.Edu
Case Western Reserve University	  NeXT Mail: chet@macbeth.INS.CWRU.Edu
