LinuxQuestions.org
Register a domain and help support LQ
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, 09: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, 10:24 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
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, 10:31 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

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


All times are GMT -5. The time now is 03:08 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