Mailing List Archive
tlug.jp Mailing List tlug archive tlug 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
- Date: Sat, 17 Mar 2007 21:29:58 +0900
- From: Edward Wright <edw@example.com>
- Subject: Re: [tlug] Adding text to the beginning of a file
- References: <45FA6B45.3040500@example.com> <ba75897e0703160413oc5219d7gb2bea3d53cd0afc2@example.com> <45FB452B.8050205@example.com> <ba75897e0703162026gb5fec8cm94470f4e30b117c4@example.com> <17915.55760.452640.548230@example.com>
- User-agent: Mutt/1.4i
On Sat, Mar 17, 2007 at 09:06:40PM +0900, Stephen J. Turnbull wrote: > > I don't know any way offhand to get file names with spaces to work > under for. I tried setting IFS to newline and using `ls` instead of > *, but that seems to confuse bash completely in trying to parse the > for statement. This works for me: export IFS=$'\n' for file in `ls`;do echo $file; done Ed
- Follow-Ups:
- Re: [tlug] Adding text to the beginning of a file
- From: Scott Robbins
- References:
- [tlug] Adding text to the beginning of a file
- From: Dave M G
- Re: [tlug] Adding text to the beginning of a file
- From: Arwyn Hainsworth
- Re: [tlug] Adding text to the beginning of a file
- From: Dave M G
- Re: [tlug] Adding text to the beginning of a file
- From: Arwyn Hainsworth
- Re: [tlug] Adding text to the beginning of a file
- From: Stephen J. Turnbull
Home | Main Index | Thread Index
- Prev by Date: [tlug] get free local port for script?
- Next by Date: Re: [tlug] Adding text to the beginning of a file
- Previous by thread: Re: [tlug] Adding text to the beginning of a file
- Next by thread: Re: [tlug] Adding text to the beginning of a file
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links