> On 2007-09-28 18:34, [EMAIL PROTECTED] wrote:
>> I know this should be easy, but I cannot get it to work right.
>> Basically, I have a list of items, and I need to place each one on a
>> separate line.
>>
>> Here is the script I am using.
>> #!/bin/sh
>> FILENAMES="test1 test2 test3"
>> FILELIST=
On 2007-09-29 19:54, Chad Perrin <[EMAIL PROTECTED]> wrote:
> By the way, though, I think the CRLF characters were backwards in the
> original post of this thread, which used "\n\r". I'm pretty sure it's
> "\r\n" as I've done it. I may just be having a stupid day, though,
> and be getting them ba
On Fri, Sep 28, 2007 at 03:09:52PM -0600, Warren Block wrote:
> On Fri, 28 Sep 2007, [EMAIL PROTECTED] wrote:
>
> >The output I would like to see is:
> >test1
> >test2
> >test3
>
> String manipulation in sh is painful at best. Any of the scripting
> languages are better at this.
A Ruby example
On Sunday 30 September 2007 9:04:40 am Giorgos Keramidas wrote:
> On 2007-09-28 18:34, [EMAIL PROTECTED] wrote:
> > I know this should be easy, but I cannot get it to work right.
> > Basically, I have a list of items, and I need to place each one on a
> > separate line.
> >
> > Here is the script I
On 2007-09-28 18:34, [EMAIL PROTECTED] wrote:
> I know this should be easy, but I cannot get it to work right.
> Basically, I have a list of items, and I need to place each one on a
> separate line.
>
> Here is the script I am using.
> #!/bin/sh
> FILENAMES="test1 test2 test3"
> FILELIST=""
> for
> On Sep 28, 2007, at 11:34 AM, [EMAIL PROTECTED] wrote:
>> Here is the script I am using.
>> #!/bin/sh
>> FILENAMES="test1 test2 test3"
>> FILELIST=""
>> for filename in ${FILENAMES}
>> do
>> FILELIST="${FILELIST}${filename}"$'\n\r'
>> echo ${FILELIST}
>> done
>>
>> And, here is th
On Fri, 28 Sep 2007, [EMAIL PROTECTED] wrote:
I know this should be easy, but I cannot get it to work right. Basically,
I have a list of items, and I need to place each one on a separate line.
Here is the script I am using.
#!/bin/sh
FILENAMES="test1 test2 test3"
FILELIST=""
for filename in ${
On Fri, Sep 28, 2007 at 06:34:22PM -, [EMAIL PROTECTED] wrote:
> I know this should be easy, but I cannot get it to work right. Basically,
> I have a list of items, and I need to place each one on a separate line.
>
> Here is the script I am using.
> #!/bin/sh
> FILENAMES="test1 test2 test3"
On Sep 28, 2007, at 11:34 AM, [EMAIL PROTECTED] wrote:
Here is the script I am using.
#!/bin/sh
FILENAMES="test1 test2 test3"
FILELIST=""
for filename in ${FILENAMES}
do
FILELIST="${FILELIST}${filename}"$'\n\r'
echo ${FILELIST}
done
And, here is the output I am getting.
test1$\n\
I know this should be easy, but I cannot get it to work right. Basically,
I have a list of items, and I need to place each one on a separate line.
Here is the script I am using.
#!/bin/sh
FILENAMES="test1 test2 test3"
FILELIST=""
for filename in ${FILENAMES}
do
FILELIST="${FILELIST}${file
10 matches
Mail list logo