Sponsored Content
Top Forums Shell Programming and Scripting How to compare the dates in shell script Post 302108615 by vaji on Tuesday 27th of February 2007 11:34:14 PM
Old 02-28-2007
MySQL Thank you

hi Perderabo

Its fantastic, i achieved this by writing ten line what you did it in one line.

Thank you

Regards
Vajiramani
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Compare two dates using Shell Programming

Hi all, a=2007-05-10 (YYYY-DD-MM Format) b=2007-06-10 These are the two given dates and I need to compare. (First It should split the dates into YYYY,dd,mm) The script should first compare years(2007 here).If both are same or if "a" is lesser than "b"(ie.suppose year in "a" is 2006),it... (4 Replies)
Discussion started by: dave_nithis
4 Replies

2. Shell Programming and Scripting

Difference of 2 dates in shell script

Hi., After retrieving values from DB I have two datestamps in format: 12/01/2010:05:40:00 AM and 12/01/2010:06:00:00 PM. general time format: MM/DD/YYYY:HH:MM:SS AM or PM Any quick solution to get the difference of two in the format : 1 day(s) 12:20:00 Thanks., (6 Replies)
Discussion started by: IND123
6 Replies

3. Shell Programming and Scripting

compare dates using shell sript

I have 2 date feilds 2011-05-13:18:45 2011-05-13:18:30 I need to compare them and say its OK/NOK I tried this but dint work. systime=2011-05-13:18:45 shubtime=2011-05-13:18:30 if then echo" OK" else echo "NOK" fi In this its not same so the o/p should be NOK (2 Replies)
Discussion started by: LavanyaP
2 Replies

4. Shell Programming and Scripting

Compare Dates.

Hi All, I am entering StartDate and EndDate as parameters to script. Want to have an check saying, "If StartDate is greater than EndDate then don't execute the script". Pseudo Code: if then Execute script else exit 0 fi Can you please help me on the same? Thanks and... (4 Replies)
Discussion started by: Nagaraja Akkiva
4 Replies

5. Shell Programming and Scripting

append dates going forward from today to certain line in shell script

Hi there, I have a requirement to append dates going forward to a certain line in a file. I'm not sure of how to go about this. Any help will be greatly appreciated. Thanks Slyesco:wall: (2 Replies)
Discussion started by: Slyesco
2 Replies

6. Shell Programming and Scripting

Shell script to calculate difference between 2 dates

shell script to calculate difference between 2 dates (3 Replies)
Discussion started by: gredpurushottam
3 Replies

7. Shell Programming and Scripting

Need Help:Shell Script for Solaris to change the dates in a file by one week

I have to increase the date by one week in an input when script is executed in solaris. I was able to acheive this using ksh script that is working in Linux enivironment, when i execute the same script in Solaris i am getting below error: /var/tmp\n\r-> ./script.ksh date: illegal option -- d... (3 Replies)
Discussion started by: sriramanaramoju
3 Replies

8. Shell Programming and Scripting

Shell script to work on dates

Hi Sir/Madam I have a file data.txt like below file_name date_of_creation x 2/10/2012 y 8/11/2010 z 11/3/2013 a 2/10/2013 b 3/10/2013 c ... (4 Replies)
Discussion started by: kumar85shiv
4 Replies

9. Shell Programming and Scripting

Comparing dates in shell script

Hi All, I have a date variable say dt="2014-01-06 07:18:38" Now i need to use this variable to search a log and get the entries which occured after that time. (1 Reply)
Discussion started by: Girish19
1 Replies

10. Shell Programming and Scripting

Shell Script to Loop through Quarter dates

Hi, Trying to automate a Postgres query using Shell script Every month 1st week has to run a Monthly Queries to generate delimited files. July 1st start of fiscal yr which has 4 Quarters until next June 30th Example If I'm running on Sept 5th it has to generate one file(Becuase it... (12 Replies)
Discussion started by: krux_rap
12 Replies
eucJP(5)						Standards, Environments, and Macros						  eucJP(5)

NAME
eucJP, eucjp - map between Japanese EUC and character set DESCRIPTION
In SunOS and JFP, Japanese EUC (Extended UNIX code) is used as character code system expressing multi-byte languages including Japanese character in the "ja" locale. This manual page shows map between Japanese EUC and character set. The following is a map table for Japanese EUC and character set (SS2 stands for 0x8e, and SS3 stands for 0x8f ). Table 1 Japanese EUC character set 0x00 - 0x19 JIS X 0201-1976 function character set 0x20 JIS X 0201-1976 space char- acter 0x21 - 0x7e JIS X 0201-1976 figure char- acter set for roman charac- ter 0x7f JIS X 0201-1976 erase char- acter 0x80 - 0x9f ISO 6429 C1 control charac- ter (except for 0x8e, 0x8f) SS2 0xa1 - 0xdf JIS X 0201-1976 figure char- acter set for katakana (except for an area of unde- fined character E/0 - F/14) SS3 0xa1a1 - 0xa1fe JIS X 0212-1990 (1 ku 1 ten - 1 ku 94 ten) SS3 0xa2a1 - 0xa2fe JIS X 0212-1990 (2 ku 1 ten - 2 ku 94 ten) : : : : SS3 0xf3a1 - 0xf3fe JIS X 0212-1990 (83 ku 1 ten - 83 ku 94 ten) SS3 0xf4a1 - 0xf4fe JIS X 0212-1990 (84 ku 1 ten - 84 ku 94 ten) 0xa1a1 - 0xa1fe JIS X 0208-1990 (1 ku 1 ten - 1 ku 94 ten) 0xa2a1 - 0xa2fe JIS X 0208-1990 (2 ku 1 ten - 2 ku 94 ten) : : : : 0xf3a1 - 0xf3fe JIS X 0208-1990 (83 ku 1 ten - 83 ku 94 ten) 0xf4a1 - 0xf4fe JIS X 0208-1990 (84 ku 1 ten - 84 ku 94 ten) Each character set corresponds with Japanese EUC code set numbers as follows. Table 2 character set (coding charac- Japanese EUC extended code set no. ter set) JIS X 0201 figure character 0 set for roman character JIS X 0208-1990 1 JIS X 0201 figure character 2 set for katakana JIS X 0212-1990 3 NOTES
In Japanese EUC area below has special meaning. Table 3 Japanese EUC area of character set meaning SS3 0xf3a1 - 0xf4fe JIS X 0212-1990 83 ku Vender Defined Character - 84 ku (IBM extension character not included in JIS X 0212-1990) SS3 0xf5a1 - 0xfefe User Defined Character 11 ku - 20 ku 0xada1 - 0xadfe JIS X 0208-1990 13 ku Vender Defined Character (special symbols) 0xf5a1 - 0xfefe User Defined Character 1 ku - 10 ku SEE ALSO
PCK(5) SunOS 5.10 12 June 2000 eucJP(5)
All times are GMT -4. The time now is 04:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy