Re: echo/sed combination inserts extra characters

2006-11-19 Thread Jesus Arocho
Thanks all for the responses to my question. I will try the suggestions, specially the one about the date command. I am still somewhat concerned about the introduction of extraneous characters. I would like to know if indeed sed (at least the version I am using) is responsible for the extra

Re: echo/sed combination inserts extra characters

2006-11-18 Thread Carl Johnson
Jesus Arocho <[EMAIL PROTECTED]> writes: > I want to rename a series of photo files downloaded from a camera; the intent > is to append the date to the beginning of the file name. The relevant lines > are: > > newdir=`date +%F | sed 's/-//g'` #newdir used to make the directory and to > rename

Re: echo/sed combination inserts extra characters

2006-11-18 Thread Gregory Seidman
On Sat, Nov 18, 2006 at 12:39:26PM -0500, Jesus Arocho wrote: } I want to rename a series of photo files downloaded from a camera; the intent } is to append the date to the beginning of the file name. The relevant lines } are: } } newdir=`date +%F | sed 's/-//g'` #newdir used to make the direct

Re: echo/sed combination inserts extra characters

2006-11-18 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/18/06 11:39, Jesus Arocho wrote: > I want to rename a series of photo files downloaded from a camera; the intent > is to append the date to the beginning of the file name. The relevant lines > are: > > newdir=`date +%F | sed 's/-//g'` #newdir

Re: echo/sed combination inserts extra characters

2006-11-18 Thread Marty
Jesus Arocho wrote: I want to rename a series of photo files downloaded from a camera; the intent is to append the date to the beginning of the file name. The relevant lines are: newdir=`date +%F | sed 's/-//g'` #newdir used to make the directory and to rename the files. new=Í„`echo $i | s

Re: echo/sed combination inserts extra characters

2006-11-18 Thread Roberto C. Sanchez
On Sat, Nov 18, 2006 at 12:39:26PM -0500, Jesus Arocho wrote: > I want to rename a series of photo files downloaded from a camera; the intent > is to append the date to the beginning of the file name. The relevant lines > are: > > newdir=`date +%F | sed 's/-//g'` #newdir used to make the direct

echo/sed combination inserts extra characters

2006-11-18 Thread Jesus Arocho
I want to rename a series of photo files downloaded from a camera; the intent is to append the date to the beginning of the file name. The relevant lines are: newdir=`date +%F | sed 's/-//g'` #newdir used to make the directory and to rename the files. new=̈́`echo $i | sed -e 's/_//'` # strip t