09-10-2012
o/p :
4-jan-2012 y 2
---as it is 2 time available in file
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I've used various scripts in the past to work out the date last week from the current date, however I now have a need to work out the date 1 week from a given date.
So for example, if I have a date of the 23rd July 2010, I would like a script that can work out that one week back was... (4 Replies)
Discussion started by: Donkey25
4 Replies
2. Shell Programming and Scripting
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
3. Shell Programming and Scripting
i have a file with below contents
Mg_Message_count,1-Aug-12,46
Mg_Message_count,2-Aug-12,48
Mg_Message_count,3-Aug-12,48
Mg_Message_count,4-Aug-12,48
Mg_Message_count,5-Aug-12,48
Mg_Message_count,6-Aug-12,48
Mg_Message_count,7-Aug-12,42
Mg_Message_count,20-Aug-12,24... (10 Replies)
Discussion started by: rabindratech
10 Replies
4. Shell Programming and Scripting
Hi am using Unix AIX Ksh
have a FILE
CAT FILE
08/02/2013
16/02/2013
18/02/2013
I need the Outputs as
Missing date are 09/02/2013 to 15/02/2013,17/02/2013
can anyone help me !!! (1 Reply)
Discussion started by: Venkatesh1
1 Replies
5. Shell Programming and Scripting
I'd like to have the output from this script piped to a text file that has the date at the beginning of it. For example, my ideal would be something like this
$./run_script.sh
$ls *.out
2013-Feb-26-output_filename.out
Here's the code I'm using.
#! /bin/ksh
DAT=`date '+%Y-%b-%d'`
for... (2 Replies)
Discussion started by: DustinT
2 Replies
6. Shell Programming and Scripting
Hi Am using unix Aix Ksh
Have Created table called vv
and i have inserted two date
Select * from vv;
Output :-
New_date
21/02/2013
24/02/2013
I have tried Using One query but Unsuccessful so far..
SELECT l.new_date + '1 day' as miss
from vv as l (7 Replies)
Discussion started by: Venkatesh1
7 Replies
7. SuSE
Hello,
This is a programming question as well as a suse question, so let me know if you think I should post this in programming.
I have an application that I compiled under opensuse 12.2 using g77-3.3/g++3.3. The program compiles and runs just fine. I gave the application to a colleague who... (2 Replies)
Discussion started by: LMHmedchem
2 Replies
8. Red Hat
I am trying to install VirtualBox on RHEL 5 but I need the 32 bit version for 32 bit Windows. When I run yum I get the following:
sudo yum localinstall /auto/spvtg-it/spvss-migration/Software/VirtualBox-4.3-4.3.2_90405_el6-1.i686.rpm
Loaded plugins: fastestmirror
Setting up Local Package... (13 Replies)
Discussion started by: gw1500se
13 Replies
9. Shell Programming and Scripting
Hi Again,
I have a file that contains date and time for the past 2 hours. What i need is add missing date and time in a file.
INPUT
2016-01-13 01:33 10
2016-01-13 01:31 10
2016-01-13 01:30 10
2016-01-13 01:29 10
2016-01-13 01:28 10
2016-01-13 01:27 10
2016-01-13 01:26 10
2016-01-13... (14 Replies)
Discussion started by: ernesto
14 Replies
10. Shell Programming and Scripting
i try to set linux date & time in specific format but it keep giving me error
Example :
date "+%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01"
or
date +"%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01"
keep giving me this error :
date: invalid date ‘19-01-2017 00:05:01'
Please use CODE tags... (7 Replies)
Discussion started by: umen
7 Replies
LEARN ABOUT DEBIAN
hdate_struct
hdate_struct(3) libhdate C language hdate_struct(3)
NAME
hdate_struct -
libhdate Hebrew date struct
SYNOPSIS
#include <hdate.h>
Data Fields
int hd_day
int hd_mon
int hd_year
int gd_day
int gd_mon
int gd_year
int hd_dw
int hd_size_of_year
int hd_new_year_dw
int hd_year_type
int hd_jd
int hd_days
int hd_weeks
Detailed Description
libhdate Hebrew date struct
Field Documentation
int hdate_struct::hd_day The number of day in the hebrew month (1..31).
int hdate_struct::hd_mon The number of the hebrew month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2).
int hdate_struct::hd_year The number of the hebrew year.
int hdate_struct::gd_day The number of the day in the month. (1..31)
int hdate_struct::gd_mon The number of the month 1..12 (1 - jan).
int hdate_struct::gd_year The number of the year.
int hdate_struct::hd_dw The day of the week 1..7 (1 - sunday).
int hdate_struct::hd_size_of_year The length of the year in days.
int hdate_struct::hd_new_year_dw The week day of Hebrew new year.
int hdate_struct::hd_year_type The number type of year.
int hdate_struct::hd_jd The Julian day number
int hdate_struct::hd_days The number of days passed since 1 tishrey
int hdate_struct::hd_weeks The number of weeks passed since 1 tishrey
Author
Generated automatically by Doxygen for libhdate C language from the source code.
Version 1.4 Sun Jan 8 2012 hdate_struct(3)