Sponsored Content
Top Forums Shell Programming and Scripting pull range of dates/times and put into new file Post 302402024 by freddie999 on Monday 8th of March 2010 04:05:02 PM
Old 03-08-2010
from time/date stamp pull names of files and put into a new file


Files Names:
E-PKG.Mortgage3DayDisclosure-Fixed-FirstMortgage-Prime-InstallmentLoan-3d658cc00a5b4b9e3a83bd2f5b3b498d-200000446910.zip Date Modified 3/8/2010 4:50 PM

N-PKG.MortgageAppraisalDelivery-Fixed-FirstMortgage-Prime-InstallmentLoan-3d0f5a590a5b4b97cc5fc9f04299b229-200000446610.zip Date Modified 3/8/2010 6:50 AM

E-PKG.Mortgage3DayDisclosure-Fixed-FirstMortgage-Prime-InstallmentLoan-3c78cd200a5b4b9e3a83bd2fb8bc2982-200000445310.zip Date Modified 3/8/2010 3:30 PM

N-PKG.MortgageAppraisalDelivery-Fixed-FirstMortgage-Prime-InstallmentLoan-3c067f900a5b4b9f23fb8dc929018cfb-200000445110.zip Date Modified 3/8/2010 1:10 PM

N-PKG.MortgagePrivacyNotice-null-FirstMortgage-Prime-null-364efccc0a5b4b974796f3d496680391-999918501.zip Date Modified 3/8/2010 9:30 PM
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Display dates within a given date range

Hi All, I have a requirement to display all the dates within the provided (through user input) date range. For eg: If I enter 28012009 (as From date in the format 'DDMMYYYY') and 02022009(as To date in the format 'DDMMYYYY'), the output should be all dates occuring between the from and to... (11 Replies)
Discussion started by: sunpraveen
11 Replies

2. Shell Programming and Scripting

How do I pull a substring out of a file?

I'm new to shell scripting and am trying to write a small script that pulls a substring out of a file that has a few lines of text in it. The file will eventually have a lot of text, I just put a few lines in it for testing purposes. Anyway, this is what I have so far... #!/bin/ksh ... (4 Replies)
Discussion started by: enator45
4 Replies

3. Shell Programming and Scripting

Pull log between two dates.

Hi, I am trying to pull out lines from logs between two dates, the logs has lines like this : conn=552 op=3 msgId=17228 - RESULT err=0 tag=97 nentries=0 etime=0 dn="cn=amldapuser,ou=dsame u sers,dc=abc,dc=com" conn=553 op=-1 msgId=-1 - fd=34 slot=34 LDAP connection from 52.99.164.14 to... (4 Replies)
Discussion started by: john_prince
4 Replies

4. Shell Programming and Scripting

How pull the Data from the file and should be mailed

Hi All, I need to pull the data from a file from 2 set of directories & should be mailed. I have a code , it is failing for some reason. Do somebody correct me where my script is going wrong. Directories: 1st Set of Directory /176_PS/Transactions/**/syslog.log ** : prd1 prd2... (2 Replies)
Discussion started by: raghunsi
2 Replies

5. Shell Programming and Scripting

Using 'date' to list a range of dates

Hi guys, I have been trying to create a list of dates from a certain range, ie. range from 01011950 to 31122000 But when my below code reaches certain dates, it comes up with a; 'date: invalid date 'yyyy-mm-dd -d 1day' Sofar I have come up with the following, slow and ugly; ... (4 Replies)
Discussion started by: TAPE
4 Replies

6. Shell Programming and Scripting

How to put date range from a perl & sql script

Hi Guys, Can someone please help me on adding/inserting a variable date to an sql scipt? Basically I want to assign a 7 days date range. As shown below.. #!/usr/bin/perl use strict; use Env qw(ORACLE_HOME); my $SQLPLUS='/opt/oracle/product/10.1.0/db_1/bin/sqlplus -S... (1 Reply)
Discussion started by: pinpe
1 Replies

7. Shell Programming and Scripting

Trying to pull a variable out of an xml file...

Hello. I'm new to *ix and am trying to pull a variable or two from an xml document. The document is in the format: <name>7_3(A).mov</name> <description>Some description from a file</description> <updatename>7_3_A.mov</updatename> <updatepath>Dailies Released</updatepath> ... (3 Replies)
Discussion started by: Renfield
3 Replies

8. Emergency UNIX and Linux Support

show div on select - range of dates

Hi, I am sure this is simple, but I am breaking my head. I need 1 page with at the top a range of dates, 2002, 2003, 2004 etc If you select 2002 it will show the content of 1 div, if you select 2002 the content of another div. this is for showing announcements on a site, right now there... (1 Reply)
Discussion started by: lawstudent
1 Replies

9. UNIX for Dummies Questions & Answers

How to write the dates between 2 dates into a file

Hi All, I am trying to print the dates that falls between 2 date variables into a file. Here is the example. $BUS_DATE =20120616 $SUB_DATE=20120613 Output to file abc.txt should be : 20120613,20120614,120120615,20120616 Can you pls help me accomplish this in LINUX. Thanks... (5 Replies)
Discussion started by: dsfreddie
5 Replies

10. Shell Programming and Scripting

Display data from a range of dates

I have a data in a file called SCHED which has 5 columns: sched no, date, time, place and remarks. The image is shown below. http://dl.dropbox.com/u/54949888/Screenshot%20from%202013-01-02%2002%3A42%3A25.png Now, I want to display only the schedules which fall under a certain date range which... (2 Replies)
Discussion started by: angilulu
2 Replies
CONVCAL(1)							   User's Manual							CONVCAL(1)

NAME
convcal - convert dates to different formats SYNOPSIS
convcal [OPTIONS] [DATE] DESCRIPTION
convcal is part of the grace software package, an application for two-dimensional data visualization. convcal converts dates from and to various formats. The following date formats are supported (hour, minutes and seconds are always optional): iso 1999-12-31T23:59:59.999 european 31/12/1999 23:59:59.999 or 31/12/99 23:59:59.999 us 12/31/1999 23:59:59.999 or 12/31/99 23:59:59.999 days 123456.789 seconds 123456.789 The formats are tried in the following order : users's choice, iso, european and us (there is no ambiguity between calendar formats and numerical formats and therefore no order is specified for them). USAGE
convcal reads the dates either on the command line or in the standard input if the command line contains no date. The user's choice for the input format put one format before the other ones in the trial list, this is mainly useful for US citizen which would certainly prefer to have US format checked before european format. The default user's choice (nohint) does nothing so the following formats of the list are checked. The separators between various fields can be any characters in the set: " :/.-T". One or more spaces act as one separator, other characters can not be repeated, the T separator is allowed only between date and time, mainly for iso8601. So the string "1999-12 31:23-59" is allowed (but not recommended). The '-' character is used both as a separator (it is traditionally used in iso8601 format) and as the unary minus (for dates in the far past or for numerical dates). When the year is between 0 and 99 and is written with two or less digits, it is mapped to the era beginning at wrap year and ending at wrap year + 99 as follows : [wy ; 99] -> [ wrap_year ; 100*(1 + wrap_year/100) - 1 ] [00 ; wy-1] -> [ 100*(1 + wrap_year/100) ; wrap_year + 99] so for example if the wrap year is set to 1950 (which is the default value), then the mapping is : range [00 ; 49] is mapped to [2000 ; 2049] range [50 ; 99] is mapped to [1950 ; 1999] this is reasonably Y2K compliant and is consistent with current use. Specifying year 1 is still possible using more than two digits as follows : "0001-03-04" is unambiguously March the 4th, year 1, even if the user's choice is us format. However using two digits only is not recommended (we introduce a 2050 bug here so this feature should be removed at some point in the future ;-) Numerical dates (days and seconds formats) can be specified using integer, real or exponential formats (the 'd' and 'D' exponant markers from fortran are supported in addition to 'e' and 'E'). They are computed according to a customizable reference date. The default value is given by the REFDATE constant in the source file. You can change this value as you want before compiling, and you can change it at will using the -r command line option. The default value in the distributed file is "-4713-01-01T12:00:00", it is a classical reference for astronomical events (note that the '-' is used here both as a unary minus and as a separator). The program can be used either for Denys's and gregorian calendars. It does not take into account leap seconds : you can think it works only in International Atomic Time (TAI) and not in Coordinated Unified Time (UTC) ... Inexistant dates are detected, they include year 0, dates between 1582-10-05 and 1582-10-14, February 29th of non leap years, months below 1 or above 12, ... OPTIONS
A summary of the options supported by convcal is included below. -h prints the help message on stderr and exits successfully -i format set user's choice for input format, supported formats are iso, european, us, days, seconds and nohint. At the beginning the input format is nohint, which means the program try to guess the format by itself, if the user's choice does not allow to parse the date, other formats are tried -o format force output format, supported formats are iso, european, us, days, seconds and nohint. At the beginning, the output format is nohint, which means the program uses days format for dates read in any calendar format and uses iso8601 for dates read in numerical format -r date set reference date (the date is read using the current input format) at the beginning the reference is set according to the REFDATE constant in the code, which is -4713-01-01T12:00:00 in the distributed file. -w year set the wrap year to year SEE ALSO
grace(1) http://plasma-gate.weizmann.ac.il/Grace/ AUTHOR
Luc Maisonobe This man-page was written by Jan Schaumann <jschauma@netmeister.org> as part of "The Missing Man Pages Project". Please see http://www.netmeister.org/misc/m2p2/index.html for details. grace August 11, 2001 CONVCAL(1)
All times are GMT -4. The time now is 08:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy