LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-17-2012, 08:02 PM   #1
BigBack666
LQ Newbie
 
Registered: Mar 2012
Posts: 7

Rep: Reputation: Disabled
Cal command help!


I have find the command to display the calendar for this month while also displaying the number of days since the new year. I've looked everywhere in the man, help, and info pages and I can't find the command to show the number of days since the new year.

any help is much appreciated!
 
Old 04-17-2012, 09:24 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,891

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Quote:
I can't find the command to show the number of days since the new year.
cal -j
will show the current month in Julian date format, with the current day highlighted. That's the number of days since January 1.
 
Old 04-17-2012, 09:31 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,289

Rep: Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384
Quote:
the command to show the number of days since the new year.
Or: date +%j

Just noticed you wanted the cal command, never mind.

Last edited by yancek; 04-17-2012 at 09:33 PM.
 
  


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
customize cal command kakalig2007 Linux - Newbie 1 02-21-2012 04:26 AM
Use Cal instead of date command - Bash Blackout_08 Programming 1 06-22-2006 11:39 AM
Cal command Blackout_08 Programming 9 06-08-2006 05:56 PM
"cal" command question tanawana Debian 2 10-13-2005 04:25 AM
unix cal command in an odd situation GUIPenguin General 5 10-12-2005 04:10 PM

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

All times are GMT -5. The time now is 02:08 PM.

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