LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-03-2009, 05:29 PM   #1
Izarf
LQ Newbie
 
Registered: Nov 2006
Posts: 16

Rep: Reputation: 0
Another basic bash question


How do I increase different parts of the date variable and then get it altogether again?

Code:
today=`date +%d%m%y`
let "end= 2*`date +%d`"   #and then what? how do i also get increased month and year?
 
Old 05-03-2009, 06:56 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,332

Rep: Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407
A little more detail on exactly what you are trying to do would probably get you more help. What does 'increase different parts of the date variable' mean?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic Bash Script help mpmackenna Linux - Newbie 3 03-18-2009 11:23 AM
Basic bash script question kevpatts Linux - Newbie 3 10-12-2005 02:02 PM
Basic Bash script help valadamir Programming 2 12-01-2004 11:37 AM
Basic BASH scripting question Dark_Helmet Programming 3 06-26-2003 06:45 PM
help with basic syntax in bash script Supp0rtLinux Linux - Software 4 03-27-2003 07:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration