Sponsored Content
Full Discussion: Logic help with Scenario
Top Forums Shell Programming and Scripting Logic help with Scenario Post 302594771 by joshiamit on Wednesday 1st of February 2012 06:20:54 AM
Old 02-01-2012
Logic help with Scenario

Hello Folks
I am looking for logic help for below scenerio with respect to AIX n unix script
1) We need to get the date of all the saturday in yr
2) L_o left over days is weeks left over days for previous month for eg.
first sat of feb is 4th of feb in that week we have 29 - 30 - 31 from Jan so 3 left over days
so we need to have 2 entries for this date one in jan and one in feb with l_o days as 3 and 4 resp.
Expected output will be something like this
Code:
Saturday    Month   l_o     mth_st mth_end
1/7/2012     jan       0          Y         N
1/14/2012   jan       0            N N
1/21/2012   jan        0           N N
1/28/2012   jan        0           N N
2/4/2012     jan        3           N Y
2/4/2012     feb        4           Y N
2/11/2012   feb        0            N N
2/18/2012   feb        0            N N
2/25/2012   feb        0             N N
3/3/2012     feb       4             N Y

.
Please let me know if more information is needed
Thanks in advance

Last edited by methyl; 02-01-2012 at 09:31 AM.. Reason: please use code tags
 

We Also Found This Discussion For You

1. Emergency UNIX and Linux Support

Help in below scenario

Hi, my file has the data like below: 11,231,ABCVAV 22,AAHJHAj22,hdsjkhdls 22,dhskjhdkshd 22,gdgkdkadh 11,232,dgsjgdjh 22,ghdskahdkja 22,shdkajshs 11,233,ddjs 22,dhjkahkd 22,hsajhaah 11,231,sjkjsjj 22,ahkh 22,hsakh From the above i need only the records which starts as 11,231... (5 Replies)
Discussion started by: pandeesh
5 Replies
DateTime::Locale::nn(3) 				User Contributed Perl Documentation				   DateTime::Locale::nn(3)

NAME
DateTime::Locale::nn SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'nn' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Norwegian Nynorsk. DATA
This locale inherits from the DateTime::Locale::root locale. It contains the following data. Days Wide (format) maandag tysdag onsdag torsdag fredag laurdag sondag Abbreviated (format) maa. ty. on. to. fr. la. so. Narrow (format) M T O T F L S Wide (stand-alone) maandag tysdag onsdag torsdag fredag laurdag sondag Abbreviated (stand-alone) maa. ty. on. to. fr. la. so. Narrow (stand-alone) M T O T F L S Months Wide (format) januar februar mars april mai juni juli august september oktober november desember Abbreviated (format) jan feb mar apr mai jun jul aug sep okt nov des Narrow (format) J F M A M J J A S O N D Wide (stand-alone) januar februar mars april mai juni juli august september oktober november desember Abbreviated (stand-alone) jan feb mar apr mai jun jul aug sep okt nov des Narrow (stand-alone) J F M A M J J A S O N D Quarters Wide (format) 1. kvartal 2. kvartal 3. kvartal 4. kvartal Abbreviated (format) K1 K2 K3 K4 Narrow (format) 1 2 3 4 Wide (stand-alone) 1. kvartal 2. kvartal 3. kvartal 4. kvartal Abbreviated (stand-alone) K1 K2 K3 K4 Narrow (stand-alone) 1 2 3 4 Eras Wide f.Kr. e.Kr. Abbreviated f.Kr. e.Kr. Narrow f.Kr. e.Kr. Date Formats Full 2008-02-05T18:30:30 = tysdag 5. februar 2008 1995-12-22T09:05:02 = fredag 22. desember 1995 -0010-09-15T04:44:23 = laurdag 15. september -10 Long 2008-02-05T18:30:30 = 5. februar 2008 1995-12-22T09:05:02 = 22. desember 1995 -0010-09-15T04:44:23 = 15. september -10 Medium 2008-02-05T18:30:30 = 5. feb. 2008 1995-12-22T09:05:02 = 22. des. 1995 -0010-09-15T04:44:23 = 15. sep. -10 Short 2008-02-05T18:30:30 = 05.02.08 1995-12-22T09:05:02 = 22.12.95 -0010-09-15T04:44:23 = 15.09.-10 Default 2008-02-05T18:30:30 = 5. feb. 2008 1995-12-22T09:05:02 = 22. des. 1995 -0010-09-15T04:44:23 = 15. sep. -10 Time Formats Full 2008-02-05T18:30:30 = kl. 18.30.30 UTC 1995-12-22T09:05:02 = kl. 09.05.02 UTC -0010-09-15T04:44:23 = kl. 04.44.23 UTC Long 2008-02-05T18:30:30 = 18.30.30 UTC 1995-12-22T09:05:02 = 09.05.02 UTC -0010-09-15T04:44:23 = 04.44.23 UTC Medium 2008-02-05T18:30:30 = 18.30.30 1995-12-22T09:05:02 = 09.05.02 -0010-09-15T04:44:23 = 04.44.23 Short 2008-02-05T18:30:30 = 18.30 1995-12-22T09:05:02 = 09.05 -0010-09-15T04:44:23 = 04.44 Default 2008-02-05T18:30:30 = 18.30.30 1995-12-22T09:05:02 = 09.05.02 -0010-09-15T04:44:23 = 04.44.23 Datetime Formats Full 2008-02-05T18:30:30 = tysdag 5. februar 2008 kl. 18.30.30 UTC 1995-12-22T09:05:02 = fredag 22. desember 1995 kl. 09.05.02 UTC -0010-09-15T04:44:23 = laurdag 15. september -10 kl. 04.44.23 UTC Long 2008-02-05T18:30:30 = 5. februar 2008 18.30.30 UTC 1995-12-22T09:05:02 = 22. desember 1995 09.05.02 UTC -0010-09-15T04:44:23 = 15. september -10 04.44.23 UTC Medium 2008-02-05T18:30:30 = 5. feb. 2008 18.30.30 1995-12-22T09:05:02 = 22. des. 1995 09.05.02 -0010-09-15T04:44:23 = 15. sep. -10 04.44.23 Short 2008-02-05T18:30:30 = 05.02.08 18.30 1995-12-22T09:05:02 = 22.12.95 09.05 -0010-09-15T04:44:23 = 15.09.-10 04.44 Default 2008-02-05T18:30:30 = 5. feb. 2008 18.30.30 1995-12-22T09:05:02 = 22. des. 1995 09.05.02 -0010-09-15T04:44:23 = 15. sep. -10 04.44.23 Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 EEEd (d EEE) 2008-02-05T18:30:30 = 5 ty. 1995-12-22T09:05:02 = 22 fr. -0010-09-15T04:44:23 = 15 la. Hm (H:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 9:05 -0010-09-15T04:44:23 = 4:44 hm (h.mm a) 2008-02-05T18:30:30 = 6.30 ettermiddag 1995-12-22T09:05:02 = 9.05 formiddag -0010-09-15T04:44:23 = 4.44 formiddag Hms (H:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 hms (h.mm.ss a) 2008-02-05T18:30:30 = 6.30.30 ettermiddag 1995-12-22T09:05:02 = 9.05.02 formiddag -0010-09-15T04:44:23 = 4.44.23 formiddag M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (M-d) 2008-02-05T18:30:30 = 2-5 1995-12-22T09:05:02 = 12-22 -0010-09-15T04:44:23 = 9-15 MEd (E, M-d) 2008-02-05T18:30:30 = ty., 2-5 1995-12-22T09:05:02 = fr., 12-22 -0010-09-15T04:44:23 = la., 9-15 MMdd (dd.MM) 2008-02-05T18:30:30 = 05.02 1995-12-22T09:05:02 = 22.12 -0010-09-15T04:44:23 = 15.09 MMM (LLL) 2008-02-05T18:30:30 = feb 1995-12-22T09:05:02 = des -0010-09-15T04:44:23 = sep MMMd (MMM d) 2008-02-05T18:30:30 = feb 5 1995-12-22T09:05:02 = des 22 -0010-09-15T04:44:23 = sep 15 MMMEd (E MMM d) 2008-02-05T18:30:30 = ty. feb 5 1995-12-22T09:05:02 = fr. des 22 -0010-09-15T04:44:23 = la. sep 15 MMMMd (d. MMMM) 2008-02-05T18:30:30 = 5. februar 1995-12-22T09:05:02 = 22. desember -0010-09-15T04:44:23 = 15. september MMMMEd (E MMMM d) 2008-02-05T18:30:30 = ty. februar 5 1995-12-22T09:05:02 = fr. desember 22 -0010-09-15T04:44:23 = la. september 15 ms (mm.ss) 2008-02-05T18:30:30 = 30.30 1995-12-22T09:05:02 = 05.02 -0010-09-15T04:44:23 = 44.23 y (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yM (y-M) 2008-02-05T18:30:30 = 2008-2 1995-12-22T09:05:02 = 1995-12 -0010-09-15T04:44:23 = -10-9 yMEd (EEE, y-M-d) 2008-02-05T18:30:30 = ty., 2008-2-5 1995-12-22T09:05:02 = fr., 1995-12-22 -0010-09-15T04:44:23 = la., -10-9-15 yMMM (y MMM) 2008-02-05T18:30:30 = 2008 feb 1995-12-22T09:05:02 = 1995 des -0010-09-15T04:44:23 = -10 sep yMMMEd (EEE, y MMM d) 2008-02-05T18:30:30 = ty., 2008 feb 5 1995-12-22T09:05:02 = fr., 1995 des 22 -0010-09-15T04:44:23 = la., -10 sep 15 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 februar 1995-12-22T09:05:02 = 1995 desember -0010-09-15T04:44:23 = -10 september yQ (y Q) 2008-02-05T18:30:30 = 2008 1 1995-12-22T09:05:02 = 1995 4 -0010-09-15T04:44:23 = -10 3 yQQQ (y QQQ) 2008-02-05T18:30:30 = 2008 K1 1995-12-22T09:05:02 = 1995 K4 -0010-09-15T04:44:23 = -10 K3 yyMM (MM.yy) 2008-02-05T18:30:30 = 02.08 1995-12-22T09:05:02 = 12.95 -0010-09-15T04:44:23 = 09.-10 yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 yyyyMMMM (MMMM y) 2008-02-05T18:30:30 = februar 2008 1995-12-22T09:05:02 = desember 1995 -0010-09-15T04:44:23 = september -10 Miscellaneous Prefers 24 hour time? Yes Local first day of the week maandag SUPPORT
See DateTime::Locale. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's license. perl v5.18.2 2017-10-06 DateTime::Locale::nn(3)
All times are GMT -4. The time now is 12:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy