Footnote: For anybody following this thread, this is a discussion thread.
@jgt is expert and definitely did not ask this question.
I must confess that I was confused until that footnote clued me in to the fact that I wasn't in the shell scripting forum anymore (got here via the 'new posts' link).
Quote:
Originally Posted by methyl
Until looking at unix.com I had never seen the for var in <open-ended list> construct ever ... and still wonder which course/manual/book/rumour it comes from?
I don't know for certain, but my first impulse is to blame GNU Bash. I've seen that idiom recommended as the correct way to work around the fact that the final command in a bash pipeline runs in a subshell.
From the Advanced Bash-Scripting Guide's Bash Gotchas:
Regards,
Alister
hi all,
Can any 1 help me translate this korn shell code to C shell code :
email=$(grep "^$1" $folder/config_2.txt | awk '{print $2'})
In config_2.txt the content is :
which mean in korn shell , $1=groupname and $2=email address.
Now i need to write in C shell script,when i set the... (2 Replies)
Hi,
I want to remove the following code from Source files (or replace the code with empty.) from all the source files in given directory.
finally {
if (null != hibernateSession && hibernateSession.isOpen()) {
//hibernateSession.close();
}
}
It would be great if the script has... (2 Replies)
Hi ,
I have a code where i am using a infinite while loop . some thing like below
while
do
if
then
#go to line 20
fi
command 1;
command 2;
#line 20:
sleep 34; (5 Replies)
I have about 12,000,000 mod files I'm trying to turn into a test of "unlimited cloud storage" by running them all through VLC and blowing them into mp3 files. I can get this to work serially but when trying to use openMPI or Parallel, something in the syntax is tripping it up some. Here is an... (1 Reply)
Discussion started by: sparticus414
1 Replies
LEARN ABOUT PHP
locale_filter_matches
LOCALE_FILTER_MATCHES(3) 1 LOCALE_FILTER_MATCHES(3)Locale::filterMatches - Checks if a language tag filter matches with locale
Object oriented style
SYNOPSIS
publicstatic bool Locale::filterMatches (string $langtag, string $locale, [bool $canonicalize = false])
DESCRIPTION
Procedural style
bool locale_filter_matches (string $langtag, string $locale, [bool $canonicalize = false])
Checks if a $langtag filter matches with $locale according to RFC 4647's basic filtering algorithm
PARAMETERS
o $langtag
- The language tag to check
o $locale
- The language range to check against
o $canonicalize
- If true, the arguments will be converted to canonical form before matching.
RETURN VALUES
TRUE if $locale matches $langtag FALSE otherwise.
EXAMPLES
Example #1
locale_filter_matches(3) example
<?php
echo (locale_filter_matches('de-DEVA','de-DE', false)) ? "Matches" : "Does not match";
echo '; ';
echo (locale_filter_matches('de-DE_1996','de-DE', false)) ? "Matches" : "Does not match";
?>
Example #2
OO example
<?php
echo (Locale::filterMatches('de-DEVA','de-DE', false)) ? "Matches" : "Does not match";
echo '; ';
echo (Locale::filterMatches('de-DE-1996','de-DE', false)) ? "Matches" : "Does not match";
?>
The above example will output:
Does not match; Matches
SEE ALSO locale_lookup(3).
PHP Documentation Group LOCALE_FILTER_MATCHES(3)