From: Cedric <cedric@belbone.be>
To: karthikv@Alum.Dartmouth.ORG
Cc: Robin Doer <robin@robind.de>, Newbie List <linux-newbie@vger.kernel.org>
Subject: Re: files and directories with spaces in bash script
Date: Tue, 27 Mar 2007 13:49:19 +0200 [thread overview]
Message-ID: <460904BF.3080703@belbone.be> (raw)
In-Reply-To: <Pine.LNX.4.64.0703261203490.13397@localhost>
Karthik Vishwanath wrote:
> On Mon, 26 Mar 2007, at 5:52pm, Robin Doer wrote to
> karthikv@Alum.Dartmouth.ORG:
>
>> Karthik Vishwanath schrieb:
>>>
>>> #!/bin/bash
>>> # set_idv3_tags.sh
>>
>> IFS=\n # Not tested!!!
>
> Tried all variants:
> IFS=\n
> IFS="\n"
> IFS='\n'
> IFS='
> '
>
>
> They don't work.
>
try this variant:
IFS=$'\n'
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
next prev parent reply other threads:[~2007-03-27 11:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-26 14:59 files and directories with spaces in bash script Karthik Vishwanath
2007-03-26 15:52 ` Robin Doer
2007-03-26 16:05 ` Karthik Vishwanath
2007-03-27 11:49 ` Cedric [this message]
2007-03-28 18:10 ` Flemming Greve Skovengaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=460904BF.3080703@belbone.be \
--to=cedric@belbone.be \
--cc=karthikv@Alum.Dartmouth.ORG \
--cc=linux-newbie@vger.kernel.org \
--cc=robin@robind.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox