Sponsored Content
Top Forums Shell Programming and Scripting [awk] combine and convert time from log files Post 302690321 by makan on Wednesday 22nd of August 2012 10:18:18 PM
Old 08-22-2012
i just back from long holiday...

thank you for all your assistant, guys... Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk convert seconds to time of day

Does anyone know of a way to convert "seconds" to time of day in "hh:mm:ss" ? Trying to do in awk with strftime but with no luck. Thanks (2 Replies)
Discussion started by: timj123
2 Replies

2. Shell Programming and Scripting

Convert Epoch Time to Standard Date and Time & Vice Versa

Hi guys, I know that this topic has been discuss numerous times, and I have search the net and this forum for it. However, non able to address the problem I faced so far. I am on Solaris Platform and unable to install additional packages like the GNU date and gawk to make use of their... (5 Replies)
Discussion started by: DrivesMeCrazy
5 Replies

3. Shell Programming and Scripting

Find and Convert UTC Time to PST Time

Hello All - I have a script that grabs data from the net and outputs the following data 46029 46.144 -124.510 2010 07 26 22 50 320 4.0 6.0 2.2 9 6.8 311 1012.1 -0.9 13.3 13.5 13.3 - - 46041 47.353 -124.731 2010 07 26 22 50 250 2.0 3.0 1.6 8 6.4 - 1011.6 - ... (0 Replies)
Discussion started by: drexnefex
0 Replies

4. Shell Programming and Scripting

Shell script to convert epoch time to real time

Dear experts, I have an epoch time input file such as : - 1302451209564 1302483698948 1302485231072 1302490805383 1302519244700 1302492787481 1302505299145 1302506557022 1302532112140 1302501033105 1302511536485 1302512669550 I need the epoch time above to be converted into real... (4 Replies)
Discussion started by: aismann
4 Replies

5. Shell Programming and Scripting

How can view log messages between two time frame from /var/log/message or any type of log files

How can view log messages between two time frame from /var/log/message or any type of log files. when logfiles are very big and especially many messages with in few minutes, I would like to display log messages between 5 minute interval. Could you pls give me the command? (1 Reply)
Discussion started by: johnveslin
1 Replies

6. UNIX Desktop Questions & Answers

Convert time with AWK

Hi All, I need your help with the following: My input shows the time in this format 1311547776493 I need to convert it (as part of my AWK script) into this format: 18-08-2011 09:35:11.072 Thanks a lot! Royi (4 Replies)
Discussion started by: royip
4 Replies

7. Shell Programming and Scripting

Using awk or nawk to convert epoch time to date format

Looking for some help and usually when I do a search this site comes up. Hopefully someone can give me a little direction as to how to use one of these two commands to achieve what I'm trying to do. What am I trying to do? I need to take the time value in epoch format returned from the... (5 Replies)
Discussion started by: minigts
5 Replies

8. Shell Programming and Scripting

How to combine two files with awk?

Hi, everyone! I have two files, I want to combine them as follows: File1 AAAA 23 45 AAAB 44 56 AAAC 34 65 AAAD 34 87 File2 AAAA 34 54 AAAE 34 56 Combined file AAAA 23 45 34 54 AAAB 44 56 AAAC 34 65 AAAD 34 87 AAAE 34 56 (13 Replies)
Discussion started by: xshang
13 Replies

9. Shell Programming and Scripting

Combine multiple unique lines from event log text file into one line, use PERL or AWK?

I can't decide if I should use AWK or PERL after pouring over these forums for hours today I decided I'd post something and see if I couldn't get some advice. I've got a text file full of hundreds of events in this format: Record Number : 1 Records in Seq : ... (3 Replies)
Discussion started by: Mayday22
3 Replies

10. Shell Programming and Scripting

Convert UTC time into current UNIX sever time zone

Hi guys thanks for the help for my previous posts.Now i have a requirement that i download a XMl file which has UTC time stamp.I need to convert UTC time into Unix server timezone. For ex if the time zone of unix server is CDT then i need to convert into CDT.whatever may be the system time... (5 Replies)
Discussion started by: mohanalakshmi
5 Replies
hdate::Hdate(3) 					       libhdate C++ language						   hdate::Hdate(3)

NAME
hdate::Hdate - Hdate class. SYNOPSIS
#include <hdatepp.h> Public Member Functions Hdate () Hdate constructor. ~Hdate () Hdate destructor. void set_gdate (int d, int m, int y) compute date structure from the Gregorian date void set_hdate (int d, int m, int y) compute date structure from the Hebrew date void set_jd (int jd) compute date structure from the Julian day char * get_format_date (int s) get formated hebrew date. char * get_day_of_week_string (int s) get name of week day. char * get_month_string (int s) get name month. char * get_hebrew_month_string (int s) get name hebrew month. char * get_holyday_string (int s) get name hebrew holiday. int get_holyday_type () get the hebrew holiday type. char * get_parasha_string (int s) get name hebrew parasha. char * get_hebrew_year_string () get name hebrew year. char * get_hebrew_day_string () get name hebrew hebrew day of the month int get_parasha () get parash number int get_holyday () get holiday number int get_gday () get Gregorian day of the month int get_gmonth () get Gregorian month int get_gyear () get Gregorian year int get_hday () get Hebrew day of the month int get_hmonth () get Hebrew month int get_hyear () get Hebrew year int get_day_of_the_week () get the day of the week int get_size_of_year () get the size of the Hebrew year in days int get_new_year_day_of_the_week () get the day of the week of hebrew new years int get_julian () get the Julian day number int get_days () get the number of days sice Tishrey I int get_weeks () get the number of weeks sice Tishrey I void set_location (double in_latitude, double in_longitude, int in_tz) set location int get_sunrise () sunrise time int get_sunset () sunset time int get_first_light () first light time int get_talit () talit time int get_first_stars () first stars time int get_three_stars () three stars time int get_sun_hour () sun light hour time int get_midday () midday hour time char * get_translator_string () name of translator void set_diaspora () set this hdate object to use diaspora holidays and dates void set_israel () set this hdate object to use israel holidays and dates Detailed Description Hdate class. class for Hebrew/Gregorian date conversions Constructor &; Destructor Documentation hdate::Hdate::Hdate () [inline] Hdate constructor. hdate::Hdate::~Hdate () [inline] Hdate destructor. Member Function Documentation void hdate::Hdate::set_gdate (int d, int m, int y) [inline] compute date structure from the Gregorian date Parameters: d Day of month 1..31 m Month 1..12 , if m or d is 0 return current date. y Year in 4 digits e.g. 2001 void hdate::Hdate::set_hdate (int d, int m, int y) [inline] compute date structure from the Hebrew date Parameters: d Day of month 1..31 m Month 1..14 , if m or d is 0 return current date. y Year in 4 digits e.g. 5731 void hdate::Hdate::set_jd (int jd) [inline] compute date structure from the Julian day Parameters: jd the julian day number. char* hdate::Hdate::get_format_date (int s) [inline] get formated hebrew date. return the short ( e.g. '1 Tishrey' ) or long (e.g. 'Tuesday 18 Tishrey 5763 Hol hamoed Sukot' ) formated date. Parameters: s short flag. Returns: a static string of foramted date char* hdate::Hdate::get_day_of_week_string (int s) [inline] get name of week day. Parameters: s short flag true - returns a short string: sun, false returns: sunday. Returns: a static string of the day of the week char* hdate::Hdate::get_month_string (int s) [inline] get name month. Parameters: s short flag true - returns a short string: Mar, false returns: March. Returns: a static string of month name char* hdate::Hdate::get_hebrew_month_string (int s) [inline] get name hebrew month. Parameters: s short flag true - returns a short string. Returns: a static string of hebrew month name char* hdate::Hdate::get_holyday_string (int s) [inline] get name hebrew holiday. Parameters: s short flag true - returns a short string. Returns: a static string of hebrew holiday name int hdate::Hdate::get_holyday_type () [inline] get the hebrew holiday type. Returns: the holiday type (1- regular holyday, 2- three regels, 3- tzom, 0- no holiday) char* hdate::Hdate::get_parasha_string (int s) [inline] get name hebrew parasha. Parameters: s short flag true - returns a short string. Returns: a static string of hebrew parash name char* hdate::Hdate::get_hebrew_year_string () [inline] get name hebrew year. Returns: a static string of hebrew year char* hdate::Hdate::get_hebrew_day_string () [inline] get name hebrew hebrew day of the month Returns: a static string of hebrew day of the month int hdate::Hdate::get_parasha () [inline] get parash number Returns: the hebrew parasha number int hdate::Hdate::get_holyday () [inline] get holiday number Returns: the hebrew holiday number int hdate::Hdate::get_gday () [inline] get Gregorian day of the month Returns: the Gregorian day of the month int hdate::Hdate::get_gmonth () [inline] get Gregorian month Returns: the Gregorian month int hdate::Hdate::get_gyear () [inline] get Gregorian year Returns: the Gregorian year int hdate::Hdate::get_hday () [inline] get Hebrew day of the month Returns: the Hebrew day of the month int hdate::Hdate::get_hmonth () [inline] get Hebrew month Returns: the Hebrew month int hdate::Hdate::get_hyear () [inline] get Hebrew year Returns: the Hebrew year int hdate::Hdate::get_day_of_the_week () [inline] get the day of the week Returns: the day of the week int hdate::Hdate::get_size_of_year () [inline] get the size of the Hebrew year in days Returns: the size of the Hebrew year in days int hdate::Hdate::get_new_year_day_of_the_week () [inline] get the day of the week of hebrew new years Returns: the day of the week of hebrew new years int hdate::Hdate::get_julian () [inline] get the Julian day number Returns: the Julian day number int hdate::Hdate::get_days () [inline] get the number of days sice Tishrey I Returns: the the number of days sice Tishrey I int hdate::Hdate::get_weeks () [inline] get the number of weeks sice Tishrey I Returns: the the number of weeks sice Tishrey I void hdate::Hdate::set_location (double in_latitude, double in_longitude, int in_tz) [inline] set location Parameters: in_longitude longitude to use in calculations degrees, negative values are east in_latitude latitude to use in calculations degrees, negative values are south in_tz time zone int hdate::Hdate::get_sunrise () [inline] sunrise time Returns: sunrise in minutes after midnight (00:00) int hdate::Hdate::get_sunset () [inline] sunset time Returns: sunset in minutes after midnight (00:00) int hdate::Hdate::get_first_light () [inline] first light time Returns: first light in minutes after midnight (00:00) int hdate::Hdate::get_talit () [inline] talit time Returns: talit time in minutes after midnight (00:00) int hdate::Hdate::get_first_stars () [inline] first stars time Returns: first stars in minutes after midnight (00:00) int hdate::Hdate::get_three_stars () [inline] three stars time Returns: three stars in minutes after midnight (00:00) int hdate::Hdate::get_sun_hour () [inline] sun light hour time Returns: sun light hour in minutes int hdate::Hdate::get_midday () [inline] midday hour time Returns: midday hour in minutes char* hdate::Hdate::get_translator_string () [inline] name of translator Returns: a static string with name of translator, or NULL if none void hdate::Hdate::set_diaspora () [inline] set this hdate object to use diaspora holidays and dates void hdate::Hdate::set_israel () [inline] set this hdate object to use israel holidays and dates Author Generated automatically by Doxygen for libhdate C++ language from the source code. Version 1.4 6 Jan 2008 hdate::Hdate(3)
All times are GMT -4. The time now is 04:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy