The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to find a date which is 7 days past when given current date ladtony Shell Programming and Scripting 17 04-09-2009 04:06 PM
Can I know find syntax to find given date files bache_gowda Shell Programming and Scripting 3 03-26-2008 06:37 AM
date issue-find prevoius date in a patricular format bsandeep_80 UNIX for Advanced & Expert Users 3 11-15-2007 08:42 PM
Need to find created date of file in UNIX amirthraj_12 Shell Programming and Scripting 7 07-07-2006 02:44 AM
How to find Previous date and Coming date arunava_maity UNIX for Dummies Questions & Answers 2 05-24-2001 11:41 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-23-2009
Rahul chitriv Rahul chitriv is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 2
To find day out of date in HP-unix

Dear Frends,

Could you please help me with the command or option by which I can find
day where the input is date(can be of future or past).

I do have for linux, However it is not working @ hp unix.

Please help.

Regards
Rahul
  #2 (permalink)  
Old 09-23-2009
varontron varontron is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 110
Is this what you tried: date +%d
  #3 (permalink)  
Old 09-23-2009
Rahul chitriv Rahul chitriv is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 2
no no... actually it should give ... whether it is monday or tuesday or wed......

suppose if I give, 23-09-2008, it should give tuesday...


For Linux I am using the following :

CHKDT=`date -d $LIMGDT +%a`

however hp unix it is not working....
  #4 (permalink)  
Old 09-23-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,568
That is not what date does or is for in unix (non standard...) have you checked it works on other platforms? (I just done AIX and SOLARIS...) look at the man pages...

---------- Post updated at 14:27 ---------- Previous update was at 14:23 ----------

I you used this forum the way you agreed to when joining, you would have, using the search tool, found this great thread for a start:
Yesterdays Date/Date Arithmetic

Last edited by vbe; 09-23-2009 at 08:26 AM.. Reason: spelling...
  #5 (permalink)  
Old 10-16-2009
Lurch Lurch is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 6
You are looking for a feature that comes in GNU Date which is what you are using in Linux. You can get it from the HP-UX Porting Centre in the GNU Core Utils depot.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:29 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0