HI ,
I have a list1 which consists of data that i have to search and a list2 which has the files that need to be searched .So basically i am using list1 on list2 to see if list1 data is present if found replace it .I have written the code using foreach loop for each list .This is taking the... (1 Reply)
Can anyone please let me know how do I reduce files into a specific number of files by cat'ing files?
For example:
15 files must be reduced to 1 or 5 or 9 (possible values 1 to 14) (5 Replies)
I am getting a few gzip files into a folder by doing ftp to another server. Once I get them I move them to another location .But before that I need to make sure each gzip is not more than 5000 lines and split it up . The files I get are anywhere from 500 lines to 10000 lines in them and is in gzip... (4 Replies)
how to count the total number of lines of all the files under a directory using perl script..
I mean if I have 10 files under a directory then I want to count the total number of lines of all the 10 files contain. Please help me in writing a perl script on this. (5 Replies)
Hi friends,
at last i finish my script to find the status of the URL , in this code i used all the status codes, because of this it take too much of length. with the help of wiki only i find all the status codes.
Status codes in HTTP
#!/bin/bash
timevar=`date +%d-%m-%Y_%H.%M.%S` #--... (6 Replies)
Hey all
Im looking to reduce the number of cpus available on a certain node in our cluster available for jobs using SGE.
i.e. we have one node that has 24 cpus available for jobs on SGE, i would like to reduce that to 16. Thanks (1 Reply)
Hi
I have 1000 files labelled data1.txt through data1000.txt. I want to write a script that prints out the number of lines in each txt file and outputs it in the following format:
Column 1: number of data file (1 through 1000)
Column 2: number of lines in the text file
Thanks! (2 Replies)
Hi everyone,
I have two files, namely:
file1:
file1Col1Row1;file1Col2Row1;file1Col3Row1
file1Col1Row2;file1Col2Row2;file1Col3Row2
file1Col1Row3;file1Col2Row3;file1Col3Row3file2:
file2Col1Row1;file2Col2Row1;file2Col3Row1
file2Col1Row2;file2Col2Row2;file2Col3Row2... (0 Replies)
I have the following code to count the number of how many times the name occurred in one file. The code is working fine and the output is exactly what I want. The problem is the real code has more than 50 names in function listname which cause function name to have more than 50 case ,and function... (14 Replies)
I have a directory of files, I can show the number of lines in each file and order them from lowest to highest with:
wc -l *|sort
15263 Image.txt
16401 reference.txt
40459 richtexteditor.txt
How can I also print the number of unique lines in each file?
15263 1401 Image.txt
16401... (15 Replies)
Discussion started by: spacegoose
15 Replies
LEARN ABOUT PHP
locale_get_display_region
LOCALE_GET_DISPLAY_REGION(3) 1 LOCALE_GET_DISPLAY_REGION(3)Locale::getDisplayRegion - Returns an appropriately localized display name for region of the input locale
Object oriented style
SYNOPSIS
publicstatic string Locale::getDisplayRegion (string $locale, [string $in_locale])
DESCRIPTION
Procedural style
string locale_get_display_region (string $locale, [string $in_locale])
Returns an appropriately localized display name for region of the input locale. If is NULL then the default locale is used.
PARAMETERS
o $locale
- The locale to return a display region for.
o $in_locale
- Optional format locale to use to display the region name
RETURN VALUES
display name of the region for the $locale in the format appropriate for $in_locale.
EXAMPLES
Example #1
locale_get_display_region(3) example
<?php
echo locale_get_display_region('sl-Latn-IT-nedis', 'en');
echo ";
";
echo locale_get_display_region('sl-Latn-IT-nedis', 'fr');
echo ";
";
echo locale_get_display_region('sl-Latn-IT-nedis', 'de');
?>
Example #2
OO example
<?php
echo Locale::getDisplayRegion('sl-Latn-IT-nedis', 'en');
echo ";
";
echo Locale::getDisplayRegion('sl-Latn-IT-nedis', 'fr');
echo ";
";
echo Locale::getDisplayRegion('sl-Latn-IT-nedis', 'de');
?>
The above example will output:
Italy;
Italie;
Italien
SEE ALSO locale_get_display_name(3), locale_get_display_language(3), locale_get_display_script(3), locale_get_display_variant(3).
PHP Documentation Group LOCALE_GET_DISPLAY_REGION(3)