I tried t search, however, I am unable to find any relevant information about how to consider the business days only (mon-fri). I just need to run the query for last 3 business days (T, T-1, T-2). So we can this format in variables and use this in loop.
following is the code till now, where the hard coded dates are used to test the script, however, the script will be running everyday which will check, if today or T-1 or T-2 is a holiday. Note here that, this need to be checked for only business days.
I followed the egrep example given in the thread "parse text or complex grep ?". It is exactly what I need...except... how do I insert a blank line after the second line? My exact command is:
egrep 'patt1|patt2' filename
the result is:
patt1
patt2
patt1
patt2
and so on. I would... (2 Replies)
Hello friends,
I have a C source code containing sql statements. I use the following sed command to print all the sql blocks in the source code....
sed -n "/exec sql/,/;/p" Sample.cpp
The above sed command will print the sql blocks based on the pattern "exec sql" & ";"... (2 Replies)
the following range matching works great but i wish to add a blank line after each range result set... which i've tried and researched to no avail
MY INPUT DATA:
CURRENT CODE I'M USING:
sed -n '/*$/,/;/p' $INPUT_FILE
RESULTS I'M GETTING:
RESULT I looking to... (5 Replies)
Hello...
I have a file which contain certain number of records.
I want to generate another file from this file which will contain 1st line as a blank line & after every 5 lines one blank line will be inserted. How to achieve this through shell scripting?
Thanks... (5 Replies)
I use the following as part of a script to correct for a faulty hostname file.
# get the domain name
read -r thehostname < /etc/hostname
dom="$(echo $thehostname | cut -d'.' -f2)"
numchar=${#dom}
if
then
echo "It appears as though the hostname is not correctly set."
echo "Hostname has... (5 Replies)
Hi
I want to display the following input data into the tabular format as shown in the output.
Input.txt:
Following jobs are in pending state for more than 10 minutes:
JOB_ID JOB_SUBMIT_ID
MAHAR 784308
PUNJA 109367
Following jobs are running for longer time:
JOB_ID... (1 Reply)
Hi ,
i am generating some data by firing sql query with connecting to the database by my solaris box.
The below one should be the header line of my excel ,here its coming in separate row.
TO_CHAR(C. CURR_EMP_NO
---------- ---------------
LST_NM... (6 Replies)
Dears Please support
I have out put in text file and look like below
fixed inquiries - Click on MAX suffix http://server:port/app
User Details http://server:port/app
Audit User Detail Action hhttp://server:port/app
fixed inquiries - Click on MAX suffix http://server:port/app
User Details ... (13 Replies)
Hello Guys,
developing a monitoring shell script to have my queue depth count over mail .
here is the sample input file to the script which has all the queue names 1 : DISPLAY QUEUE(*) WHERE (CURDEPTH GT 0)
ZFC8409: Display Queue details.
QUEUE(QL.GVR.ATA.CACHE.01) ... (10 Replies)
Discussion started by: wims
10 Replies
LEARN ABOUT PHP
locale_get_display_script
LOCALE_GET_DISPLAY_SCRIPT(3) 1 LOCALE_GET_DISPLAY_SCRIPT(3)Locale::getDisplayScript - Returns an appropriately localized display name for script of the input locale
Object oriented style
SYNOPSIS
publicstatic string Locale::getDisplayScript (string $locale, [string $in_locale])
DESCRIPTION
Procedural style
string locale_get_display_script (string $locale, [string $in_locale])
Returns an appropriately localized display name for script of the input locale. If is NULL then the default locale is used.
PARAMETERS
o $locale
- The locale to return a display script for
o $in_locale
- Optional format locale to use to display the script name
RETURN VALUES
Display name of the script for the $locale in the format appropriate for $in_locale.
EXAMPLES
Example #1
locale_get_display_script(3) example
<?php
echo locale_get_display_script('sl-Latn-IT-nedis', 'en');
echo ";
";
echo locale_get_display_script('sl-Latn-IT-nedis', 'fr');
echo ";
";
echo locale_get_display_script('sl-Latn-IT-nedis', 'de');
?>
Example #2
OO example
<?php
echo Locale::getDisplayScript('sl-Latn-IT-nedis', 'en');
echo ";
";
echo Locale::getDisplayScript('sl-Latn-IT-nedis', 'fr');
echo ";
";
echo Locale::getDisplayScript('sl-Latn-IT-nedis', 'de');
?>
The above example will output:
Latin;
latin;
Lateinisch
SEE ALSO locale_get_display_name(3), locale_get_display_language(3), locale_get_display_region(3), locale_get_display_variant(3).
PHP Documentation Group LOCALE_GET_DISPLAY_SCRIPT(3)