renaming file to current date ?

2006-08-29 Thread S t i n g r a y
Well i want to know if its possible to rename a file to the current date ? like if i want to move todays date to the file name ? *º¤., ¸¸,.¤º*¨¨¨*¤ Stingray *º¤., ¸¸,.¤º*¨¨*¤ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the

Re: renaming file to current date ?

2006-08-29 Thread Roberto C. Sanchez
On Tue, Aug 29, 2006 at 09:24:26AM -0700, S t i n g r a y wrote: Well i want to know if its possible to rename a file to the current date ? like if i want to move todays date to the file name ? It is not clear what you want. Can you provide an example? Regards, -Roberto -- Roberto C.

Re: renaming file to current date ?

2006-08-29 Thread Steve Kemp
On Tue, Aug 29, 2006 at 09:24:26AM -0700, S t i n g r a y wrote: Well i want to know if its possible to rename a file to the current date ? like if i want to move todays date to the file name ? Say the file you want to rename is t.txt you could use: mv t.txt `date +%d-%m-%Y` That gives

Re: renaming file to current date ?

2006-08-29 Thread Florian Kulzer
On Tue, Aug 29, 2006 at 09:24:26 -0700, S t i n g r a y wrote: Well i want to know if its possible to rename a file to the current date ? like if i want to move todays date to the file name ? Do you mean something like mv somefile othername-$(date +%Y%m%d%H%M%S) -- Regards,

Re: renaming file to current date ?

2006-08-29 Thread Mathias Brodala
Hello. Well i want to know if its possible to rename a file to the current date ? like if i want to move todays date to the file name ? You can use the ouput of „date“ (format as you wish; see manpage) for renaming files if you want that. *º¤., ¸¸,.¤º*¨¨¨*¤ Stingray *º¤., ¸¸,.¤º*¨¨*¤ Erm,

Re: renaming file to current date ?

2006-08-29 Thread cga2000
On Tue, Aug 29, 2006 at 12:24:26PM EDT, S t i n g r a y wrote: Well i want to know if its possible to rename a file to the current date ? like if i want to move todays date to the file name ? or .. $ touch file .. maybe..? Thanks, cga -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with

Re: renaming file to current date ?

2006-08-29 Thread S t i n g r a y
yes exactly --- Florian Kulzer [EMAIL PROTECTED] wrote: On Tue, Aug 29, 2006 at 09:24:26 -0700, S t i n g r a y wrote: Well i want to know if its possible to rename a file to the current date ? like if i want to move todays date to the file name ? Do you mean something like mv