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
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
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
-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
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
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
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
7 matches
Mail list logo