Sponsored Content
Top Forums Shell Programming and Scripting Need help in finding in date difference Post 302672045 by methyl on Sunday 15th of July 2012 06:06:36 PM
Old 07-15-2012
@prasson_ibm
Just re-read the history of your posts and not managed to deduce what precise Operating System (an unknown vintage of IBM AIX?), or what Shell you use, or whether you have a modern version of Perl installed.

You posted a question nearly a year ago about date arithmetic which petered out because there was insufficient base information for anybody to post a solution to match your evolving requirement (only last post mentions the expected output format).

In the custom of this forum, please post the base information about your computer software, some representative sample input data which contains the date data, an explanation of the process, and the expected matching sample output data. Please mention the volume of data which needs to be processed and quote real numbers (i.e. not words like "huge").

Please do find out whether you have the BSD variant of the date command installed, and whether you have Perl installed (what version?), and whether you have ksh93 installed (unlikely with AIX but not impossible).

Last edited by methyl; 07-15-2012 at 07:10 PM.. Reason: grammar
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Finding the time difference

Hi, I have two files A.txt and B.txt. And i have the following attributes in both the files. <date and time> <a unique id> For eg: <2007 May 30 20:29:36:034 GMT> <ID1> in A.txt <2007 May 30 20:42:36:038 GMT> <ID1> in B.txt Now, i need to find the time difference... (0 Replies)
Discussion started by: padma.raajesh
0 Replies

2. Shell Programming and Scripting

finding difference between 2 directory recursively

Hi, i'm trying to compare two directories in Unix. I need a recursive search ie my shell script should also compare common files in those two directory and so on... any clues.. ?? (2 Replies)
Discussion started by: yayati
2 Replies

3. Shell Programming and Scripting

finding the previous day date and creating a file with date

Hi guys, I had a scenario... 1. I had to get the previous days date in yyyymmdd format 2. i had to create a file with Date inthe format yyyymmdd.txt format both are different thanks guys in advance.. (4 Replies)
Discussion started by: apple2685
4 Replies

4. Shell Programming and Scripting

finding difference between two files

Hi, I have two files one with 12486 lines second one with 13116 As per the comparsion between two files the count have 630 difference I used diff command to find the difference between two files but it's not understandable could any one suggest any command to get 630 records in a new... (4 Replies)
Discussion started by: thelakbe
4 Replies

5. Shell Programming and Scripting

finding date numeral from file and check the validity of date format

hi there I have file names in different format as below triss_20111117_fxcb.csv triss_fxcb_20111117.csv xpnl_hypo_reu_miplvdone_11172011.csv xpnl_hypo_reu_miplvdone_11-17-2011.csv xpnl_hypo_reu_miplvdone_20111117.csv xpnl_hypo_reu_miplvdone_20111117xfb.csv... (10 Replies)
Discussion started by: manas_ranjan
10 Replies

6. Shell Programming and Scripting

Converting a date to friday date and finding Min/Max date

Dear all, I have 2 questions. I have a file with many rows which has date of the format YYYYMMDD. 1. I need to change the date to that weeks friday date(Ex: 20120716(monday) to 20120720). Satuday/Sunday has to be changed to next week friday date too. 2. After converting the date to... (10 Replies)
Discussion started by: 2001.arun
10 Replies

7. Shell Programming and Scripting

Finding first difference between two files

Hi! I'd like to know if it is possible for a command to find the first difference between two large files, output that line from both file and stop, so no need to continue after that to save some computation time. I don't think looping through it will be efficient enough but that's the only... (6 Replies)
Discussion started by: Mojing
6 Replies

8. Shell Programming and Scripting

Finding difference in 2 different timestamps

Legends, I have a requirement to run the script exactly after one hour of completion of dependent script. Eg: Script B should run after one hour on the completion of Script A. I got the time stamps using following variables. these scripts runs in autosys > DATE=`date +%H:%M` >... (4 Replies)
Discussion started by: sdosanjh
4 Replies

9. Shell Programming and Scripting

Finding difference in between two array's of strings

Hi, Can anybody help me in finding the difference between two array elements with the help of code pls. purge=("Purge Concurrent Request and/or Manager Data" "Purge Signon Audit data" "Purge Obsolete Workflow Runtime Data" "Purge Logs and Closed System Alerts") purge_1=("Purge Obsolete... (3 Replies)
Discussion started by: Y.balakrishna
3 Replies

10. Shell Programming and Scripting

Finding difference between two columns of unequal length

Hi, I have two files which look like this cat waitstate.txt 18.2 82.1 cat gostate.txt 5.6 5.8 6.1 6.3 6.6 6.9 7.2 7.5 (4 Replies)
Discussion started by: jamie_123
4 Replies
deb-changelog(5)						    dpkg suite							  deb-changelog(5)

NAME
deb-changelog - dpkg source packages' changelog file format SYNOPSIS
changelog DESCRIPTION
Changes in the packaged version of a project are explained in the changelog file debian/changelog. This includes modifications made in the source package compared to the upstream one as well as other changes and updates to the package. The format of the debian/changelog allows the package building tools to discover which version of the package is being built and find out other release-specific information. That format is a series of entries like this: package (version) distributions; metadata [optional blank line(s), stripped] * change-details more-change-details [blank line(s), included in output of dpkg-parsechangelog(1)] * even-more-change-details [optional blank line(s), stripped] -- maintainer-name <email-address> date package and version are the source package name and version number. distributions lists one or more space-separated distributions where this version should be installed when it is uploaded; it is copied to the Distribution field in the .changes file. metadata is a comma-separated list of keyword=value items. The only keywords currently supported by dpkg are urgency and binary-only. urgency's value is used for the Urgency field in the .changes file for the upload. binary-only with a yes value, is used to denote that this changelog entry is for a binary-only non-maintainer upload (an automatic binary rebuild with the only change being the changelog entry). The change details may in fact be any series of lines starting with at least two spaces, but conventionally each change starts with an asterisk and a separating space and continuation lines are indented so as to bring them in line with the start of the text above. Blank lines may be used here to separate groups of changes, if desired. If this upload resolves bugs recorded in the distribution bug tracking system, they may be automatically closed on the inclusion of this package into the distribution archive by including the string: Closes: Bug#nnnnn in the change details (the exact Perl regular expression is /closes:s*(?:bug)?#?s?d+(?:,s*(?:bug)?#?s?d+)*/i). This information is conveyed via the Closes field in the .changes file. The maintainer name and email address used in the changelog should be the details of the person who prepared this release of the package. They are not necessarily those of the uploader or usual package maintainer. The information here will be copied to the Changed-By field in the .changes file, and then later might be used to send an acknowledgement when the upload has been installed in the distribution archive. The date has the following format (compatible and with the same semantics of RFC2822 and RFC5322, or what <<date -R>> generates): day-of-week, dd month yyyy hh:mm:ss +zzzz where: day-of-week Is one of: Mon, Tue, Wed, Thu, Fri, Sat, Sun. dd Is a one- or two-digit day of the month (01-31). month Is one of: Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec. yyyy Is the four-digit year (e.g. 2010). hh Is the two-digit hour (00-23). mm Is the two-digit minutes (00-59). ss Is the two-digit seconds (00-60). [+-]zzzz Is the time zone offset from Coordinated Universal Time (UTC). '+' indicates that the time is ahead of (i.e., east of) UTC and '-' indicates that the time is behind (i.e., west of) UTC. The first two digits indicate the hour difference from UTC and the last two digits indicate the number of additional minutes difference from UTC. The last two digits must be in the range 00-59. The first "title" line with the package name must start at the left hand margin. The "trailer" line with the maintainer and date details must be preceded by exactly one space. The maintainer details and the date must be separated by exactly two spaces. Any line that consists entirely (i.e., no leading whitespace) of # or /* */ style comments, RCS keywords, Vim modelines or Emacs local variables should be ignored. Ancient changelog entries with other formats at the end of the file should be accepted and preserved on output, but their contents might be otherwise ignored and parsing stopped at that point. The entire changelog must be encoded in UTF-8. FILES
debian/changelog EXAMPLES
dpkg (1.17.18) unstable; urgency=low [ Guillem Jover ] * Handle empty minimum versions when initializing dependency versions, as the code is mapping the minimum version 0 to '' to avoid outputting useless versions. Regression introduced in dpkg 1.17.17. Closes: #764929 [ Updated programs translations ] * Catalan (Guillem Jover). [ Updated dselect translations ] * Catalan (Guillem Jover). * German (Sven Joachim). -- Guillem Jover <guillem@debian.org> Sun, 12 Oct 2014 15:47:44 +0200 SEE ALSO
deb-version(7), deb-changes(5), dpkg-parsechangelog(1). 1.19.0.5 2018-04-16 deb-changelog(5)
All times are GMT -4. The time now is 07:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy