Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Adding text to the beginning of a file



On Sun, Mar 18, 2007 at 01:12:28AM +0900, Edward Wright wrote:
> On Sun, Mar 18, 2007 at 12:30:15AM +0900, Edward Wright wrote:
> > > export IFS=""
> > 
> > Hmm. Yeah, it does, but I don't get why. 
> 
> A little further checking shows that it only seems to work. Tho I expect
> it will "seem to work" just about anywhere you use it :)


> 
> 
> export IFS=
> for file in `ls`;do echo "file: $file"; done
> 
> outputs
> file: abc
> def
> ghi jkl

I'll be durned.  (I should point out for anyone still following, that Ed
is correct even if you do export IFS="")

Yup, you're quite right. 


-- 

Scott Robbins

PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links