Hi,
I has created the shell script in HP_UX 11.23 and using the command, echo $(date +%Y%m%d%H%M%S) > $DIR/alert, placing the time of running the script into a file alert.
I want to compare the time in the above file alert with the current time.If difference is more than 5 min, then print the... (7 Replies)
Hello all :)
I need some help; I'm running the sp_spaceused command on various tables and saving the output to a file. So, I have an input file that has 3 rows - each row has 7 columns. I would like to 1) sort the file on the 4th column, 2) take the 4th column in the first row and add 25% to... (2 Replies)
Hi,
I have a file with the contents as following
Access Time: Thu Nov 6 16:43:45 2008
Modify Time: Thu Nov 6 16:43:45 2008
Change Time: Thu Nov 6 16:43:45 2008
Access Time: Thu Nov 6 16:43:02 2008
Modify Time: Thu Nov 6 16:44:01 2008
Change Time: Thu Nov 6 16:44:01 2008
I need... (3 Replies)
Hi All
I like to know how can we calculate the number of rows and the average of the values present in the file. I will not know what will be the rowcount, which will be dynamic in nature of the file.
eg.
29
33
48
30
28 (6 Replies)
Hello!
i need to find files lower and bigger that one date i pass, i search in the man find, but i didn't find anything, the only that i find is the parameter -mtime, in this parameter i can pass a number of days, but i need to know the difference between dates, any built-in function for do... (15 Replies)
Hi,
I have CSV file which looks like below, i want to calulate number of records for each brand say SOLO_UNBEATABLE E and SOLO_UNBEATABLE F combined and record count is say 20 . i want to calculate for each brand, and here only first record will have all data and rest of record for the brand... (2 Replies)
Hi
I have shell script and I am facing the below issue to integrate the date calculation to the the script.
If I give the $1 as the date(20110701) then I need to get the 7 days ago date for the same format.(20110624).
At first I thought its a simple one to handle and I did a search in the... (10 Replies)
A report needs to come some what similar to this
No of elements Stream Batch No Load time
A B C D
A,B,C im able to get quite easily
wc -l /usr/local/intranet/areas/prod/output/SRGW_0?/*/MESSAGE_T.dat
O/P of above command.
A B C ... (1 Reply)
Hi,
I am not comfortable with dates and I fail to crack this.
I have two strings
Date1="Apr 22 23:59:59 2016 GMT"
Date2="Dec 1 15:08:40 UTC 2015"
I need to find the difference in days between the two dates which in this example is approx 140 days.
Is there an easy way to get the... (3 Replies)
16:45:51 10051 77845
16:45:51 10051 77845
16:46:52 10051 77846
16:46:53 10051 77846
Match the last PID then subtract second line time with first line.
Please help me with any command or script.
working in media company on a project OS: RHEl7
tried command:
awk 'function... (2 Replies)
Discussion started by: vivekn
2 Replies
LEARN ABOUT PHP
locale_get_display_language
LOCALE_GET_DISPLAY_LANGUAGE(3) 1 LOCALE_GET_DISPLAY_LANGUAGE(3)Locale::getDisplayLanguage - Returns an appropriately localized display name for language of the inputlocale
Object oriented style
SYNOPSIS
publicstatic string Locale::getDisplayLanguage (string $locale, [string $in_locale])
DESCRIPTION
Procedural style
string locale_get_display_language (string $locale, [string $in_locale])
Returns an appropriately localized display name for language of the input locale. If is NULL then the default locale is used.
PARAMETERS
o $locale
- The locale to return a display language for
o $in_locale
- Optional format locale to use to display the language name
RETURN VALUES
display name of the language for the $locale in the format appropriate for $in_locale.
EXAMPLES
Example #1
locale_get_display_language(3) example
<?php
echo locale_get_display_language('sl-Latn-IT-nedis', 'en');
echo ";
";
echo locale_get_display_language('sl-Latn-IT-nedis', 'fr');
echo ";
";
echo locale_get_display_language('sl-Latn-IT-nedis', 'de');
?>
Example #2
OO example
<?php
echo Locale::getDisplayLanguage('sl-Latn-IT-nedis', 'en');
echo ";
";
echo Locale::getDisplayLanguage('sl-Latn-IT-nedis', 'fr');
echo ";
";
echo Locale::getDisplayLanguage('sl-Latn-IT-nedis', 'de');
?>
The above example will output:
Slovenian;
slovxc3xa8ne;
Slowenisch
SEE ALSO locale_get_display_name(3), locale_get_display_script(3), locale_get_display_region(3), locale_get_display_variant(3).
PHP Documentation Group LOCALE_GET_DISPLAY_LANGUAGE(3)