-
selecting prev month in the shell script
Hi,
I want to generate a file name for prevoiyus month using shell script.The file name will be "ContactsMod_<MON>.csv" where <MON> will be Jan, Feb etc...
I don't know how to do that.
i have one script as below
TDATE=`date`
echo $TDATE
YEAR=`date +%y`
echo $YEAR
MONTH=`echo $TDATE |awk '{print $2}'`
echo $MONTH
MONTHU=`echo $MONTH | tr "[a-z]" "[A-Z]"`
echo $MONTHU
but this gives the current month.
Please help me
Deepali
Similar Threads
-
By bubberz in forum ASP.NET
Replies: 2
Last Post: 08-23-2005, 02:19 PM
-
By none_none in forum C++
Replies: 13
Last Post: 04-19-2005, 05:20 PM
-
By Larry Rebich in forum dotnet.announcements
Replies: 0
Last Post: 10-15-2002, 01:20 PM
-
By Chris in forum Database
Replies: 3
Last Post: 08-20-2002, 12:14 AM
-
By Anh Ly-Hang in forum Enterprise
Replies: 5
Last Post: 10-19-2001, 05:15 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks