Home » Infrastructure » Unix » Compressing a File with Time stamp in Unis Shell Script
Compressing a File with Time stamp in Unis Shell Script [message #271044] Fri, 28 September 2007 15:56 Go to next message
reksab_16
Messages: 8
Registered: September 2007
Junior Member
Hi gurus,

I am compressing a CSV File. I would like to save it with the time stamp


for example

a.csv to a.0929165745.Z 16 hr:57min:45sec

I am using compress $PM_ARC_DIR/$BASE_INFILE and the Zip file should go to PM_ARC_DIR directory

Can you please help me to do this? Any help on this is very much appreciated.

Thanks
Re: Compressing a File with Time stamp in Unis Shell Script [message #271048 is a reply to message #271044] Fri, 28 September 2007 16:18 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
man date
similar to the following:
YYMMDD=`date +%y%m%d`

WHAT in the world does this question or answer have to do with ORACLE?

[Updated on: Fri, 28 September 2007 16:18] by Moderator

Report message to a moderator

Re: Compressing a File with Time stamp in Unis Shell Script [message #271054 is a reply to message #271044] Fri, 28 September 2007 18:08 Go to previous messageGo to next message
reksab_16
Messages: 8
Registered: September 2007
Junior Member
Sir,

Thanks for your response.

But I posted in Unix Section Sir.

Thanks and Regards,

Bhaskar.
Re: Compressing a File with Time stamp in Unis Shell Script [message #271086 is a reply to message #271054] Sat, 29 September 2007 02:06 Go to previous message
Michel Cadot
Messages: 68637
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
But the WHOLE site is named ORACLE FAQ's and each forum description (but not technical ones) starts with the word Oracle.

Regards
Michel
Previous Topic: Getting Server Info Through Proc
Next Topic: Script works individially but not when put in cron
Goto Forum:
  


Current Time: Tue Apr 16 15:55:08 CDT 2024