RE: shell script

RE: shell script

 

  




With Regards / Lokesha R.
ANDC, ITC Infotech India Limited,
Banaswadi Main Road, Bangalore - 560005.

Ph: 080-25490531 Extn:8328
Email: lokesha.[Email address protected]


-----Original Message-----
From: lokesha.r [mailto:lokesha.[Email address protected]
Sent: Thursday, August 30, 2007 7:37 PM
To: 'Manish Sahay'
Subject: RE: shell script

#!/usr/bin/ksh
export PATH="path"
export DATE=`date '+%d%m%Y'`
export FILENAME="sample"

touch $PATH/${JOBNAME}_${DATE}




With Regards / Lokesha R.
ANDC, ITC Infotech India Limited,
Banaswadi Main Road, Bangalore - 560005.

Ph: 080-25490531 Extn:8328
Email: lokesha.[Email address protected]


-----Original Message-----
From: Manish Sahay [mailto:[Email address protected]
Sent: Thursday, August 30, 2007 7:32 PM
To: lokesha.[Email address protected]
Subject: RE: shell script


Hi,

I need to create a file with sysdate as per format 30082007 at a particular
path. Can you please help, else I can call you if you have query.

Manish Kumar Sahay
www.techmahindra.com



A journey of a thousand miles begins with a single step." Make sure you are
there and on time !!


-----Original Message-----
From: lokesha [mailto:lokesha.[Email address protected]
Sent: Thursday, August 30, 2007 2:38 PM
To: Manish Sahay
Subject: RE: shell script

**A LazyDBA.com subscriber has responded to your lazydba.com post**
**LazyDBA.com mail shield has forwarded you this email, **and removed any
attachments, and kept your email address secret **from this person, and any
viruses/trojans.
**If you reply to this email, the person will see your email address as
normal **Anything below this line is the original email text


Try this:
########################################################################
####
#

#!/usr/bin/ksh
export DATE=`date '+%d-%b-%Y'`
export FILENAME="sample"

touch ${JOBNAME}_${DATE}

########################################################################
####
#

With Regards / Lokesha R.
ANDC, ITC Infotech India Limited,
Banaswadi Main Road, Bangalore - 560005.

Ph: 080-25490531 Extn:8328
Email: [Email address protected]


-----Original Message-----
From: Manish Sahay
[Email address protected]
Sent: Thursday, August 30, 2007 6:57 PM
To: LazyDBA Discussion
Subject: shell script



Hi,

I need to create a shell script, where I need to create a file as per
sysdate and exit.

Can anyone help me out to achieve this?


Manish Kumar Sahay



A journey of a thousand miles begins with a single step." Make sure you
are
there and on time !!



========================================================================
====
================================================

Disclaimer:

This message and the information contained herein is proprietary and
confidential and subject to the Tech Mahindra policy statement, you may
review the policy at <a
href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahind
ra.c
om/Disclaimer.html</a> externally and <a
href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahind
ra.c
om/Disclaimer.html</a> internally within Tech Mahindra.

========================================================================
====
================================================


---------------------------------------------------------------------
TO REPLY TO EVERYBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY To post a
dba
job: http://jobs.lazydba.com To Subscribe : http://www.LazyDBA.com To
unsubscribe: http://www.lazydba.com/unsubscribe.html





Disclaimer: This communication is for the exclusive use of the
intended recipient(s) and shall not attach any liability on the
originator or ITC Infotech India Ltd./its Holding company/ its
Subsidiaries/ its Group Companies. If you are the addressee, the
contents of this e-mail are intended for your use only and it shall not
be forwarded to any third party, without first obtaining written
authorization from the originator or ITC Infotech India Ltd./ its
Holding company/its Subsidiaries/ its Group Companies. It may contain
information which is confidential and legally privileged and the same
shall not be used or dealt with by any third party in any manner
whatsoever without the specific consent of ITC Infotech India Ltd./
its Holding company/ its Subsidiaries/ its Group Companies.




============================================================================
================================================

Disclaimer:

This message and the information contained herein is proprietary and
confidential and subject to the Tech Mahindra policy statement, you may
review the policy at <a
href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.c
om/Disclaimer.html</a> externally and <a
href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.c
om/Disclaimer.html</a> internally within Tech Mahindra.

============================================================================
================================================



Disclaimer: This communication is for the exclusive use of the intended recipient(s) and shall not attach any liability on the originator or ITC Infotech India Ltd./its Holding company/ its Subsidiaries/ its Group Companies. If you are the addressee, the contents of this e-mail are intended for your use only and it shall not be forwarded to any third party, without first obtaining written authorization from the originator or ITC Infotech India Ltd./ its Holding company/its Subsidiaries/ its Group Companies. It may contain information which is confidential and legally privileged and the same shall not be used or dealt with by any third party in any manner whatsoever without the specific consent of ITC Infotech India Ltd./ its Holding company/ its Subsidiaries/ its Group Companies.


Oracle LazyDBA home page