Re: Adding CR/LF

2007-10-01 Thread jhall
> 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=

Re: Adding CR/LF

2007-10-01 Thread Giorgos Keramidas
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

Re: Adding CR/LF

2007-09-30 Thread Chad Perrin
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

Re: Adding CR/LF

2007-09-30 Thread Ray
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

Re: Adding CR/LF

2007-09-30 Thread Giorgos Keramidas
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

Re: Adding CR/LF

2007-09-29 Thread jhall
> 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

Re: Adding CR/LF

2007-09-28 Thread Warren Block
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 ${

Re: Adding CR/LF

2007-09-28 Thread Jerry McAllister
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"

Re: Adding CR/LF

2007-09-28 Thread Chuck Swiger
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\

Adding CR/LF

2007-09-28 Thread jhall
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