02-25-2011
Again, it's the fault of I18N. Set LC_ALL to C, you will see that the -i run is only twice as long.
This User Gave Thanks to binlib For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How can I do a case insensitive locate? (3 Replies)
Discussion started by: davis.ml
3 Replies
2. Shell Programming and Scripting
can I tell awk to be case insensitive for one operation without setting the ignorecase value ?
thanks,
Steffen (7 Replies)
Discussion started by: forever_49ers
7 Replies
3. Shell Programming and Scripting
Hi,
I have tried to make the conditions similar to the below one's, perhaps, I am not sure if there are any more way's to do that????
if ) ]]
echo "Whatever"
fi (5 Replies)
Discussion started by: hitmansilentass
5 Replies
4. Shell Programming and Scripting
hi everyone,
I need to do the following thing in a case insesitive mode
sed 's/work/job/g' filename
since work could appear in different form as Work WORK WorK wORK,....
I was wondering if i could do a case insensitive search of a word.
thanks in advance,
:) (4 Replies)
Discussion started by: ROOZ
4 Replies
5. Shell Programming and Scripting
I need to remove a pattern say, ABCD whether it is in uppercase or lowercase from a string. How to do it using SED?
for example
ABCDEF should output to EF
abcdEF should also output to EF (2 Replies)
Discussion started by: vickylife
2 Replies
6. Shell Programming and Scripting
I'd like to print a line if a substring is matched in a case insensitive manner
something like do a case insensitive search for ABCD as a substring:
awk '{ if (substr($1,1,4) == "") print $1 }' infile > outfile
I'm not certain how to make the syntax work???
Thanks (4 Replies)
Discussion started by: dcfargo
4 Replies
7. Shell Programming and Scripting
Hi All,
How we can perform case-insensitive search with AWK.:rolleyes:
regards,
Sam (11 Replies)
Discussion started by: sam25
11 Replies
8. Shell Programming and Scripting
Hey , i am trying to do a search for the certain books , and im trying to make it case insensitive. what i have come up with so far is this :
Database.txt
RETARDED MONKEY:RACHEAL ABRAHAML:30:30:20
GOLD:FATIN:23.20:12:3
STUPID:JERLYN:20:40:3
echo -n "Title: "
read Title
echo -n... (3 Replies)
Discussion started by: gregarion
3 Replies
9. UNIX for Dummies Questions & Answers
I am using HP-Unix B.11.31.
Question: How to do the case insensitive search using FIND?
Example: I would like list the files with extension of *.SQL & *.sql.
When I try with command find . -type f -name *.sql, it does not lists file with *.SQL. (5 Replies)
Discussion started by: Siva SQL
5 Replies
10. UNIX for Beginners Questions & Answers
Hello ,
Using the below scrip to search a string in a file , by case-insensitively
Please assist on using the toupper() as getting error !.
#!/usr/bin/ksh
set -x
curr_dir=`pwd`
file_ctr=0
printf "\n Reviewing the output file from the directory: %s \n\n" $curr_dir
ls -latr ... (4 Replies)
Discussion started by: Siva SQL
4 Replies
LEARN ABOUT SUSE
i18n::langtags::detect
I18N::LangTags::Detect(3pm) Perl Programmers Reference Guide I18N::LangTags::Detect(3pm)
NAME
I18N::LangTags::Detect - detect the user's language preferences
SYNOPSIS
use I18N::LangTags::Detect;
my @user_wants = I18N::LangTags::Detect::detect();
DESCRIPTION
It is a common problem to want to detect what language(s) the user would prefer output in.
FUNCTIONS
This module defines one public function, "I18N::LangTags::Detect::detect()". This function is not exported (nor is even exportable), and
it takes no parameters.
In scalar context, the function returns the most preferred language tag (or undef if no preference was seen).
In list context (which is usually what you want), the function returns a (possibly empty) list of language tags representing (best first)
what languages the user apparently would accept output in. You will probably want to pass the output of this through
"I18N::LangTags::implicate_supers_tightly(...)" or "I18N::LangTags::implicate_supers(...)", like so:
my @languages =
I18N::LangTags::implicate_supers_tightly(
I18N::LangTags::Detect::detect()
);
ENVIRONMENT
This module looks for several environment variables, including REQUEST_METHOD, HTTP_ACCEPT_LANGUAGE, LANGUAGE, LC_ALL, LC_MESSAGES, and
LANG.
It will also use the Win32::Locale module, if it's installed.
SEE ALSO
I18N::LangTags, Win32::Locale, Locale::Maketext.
(This module's core code started out as a routine in Locale::Maketext; but I moved it here once I realized it was more generally useful.)
COPYRIGHT
Copyright (c) 1998-2004 Sean M. Burke. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The programs and documentation in this dist are distributed in the hope that they will be useful, but without any warranty; without even
the implied warranty of merchantability or fitness for a particular purpose.
AUTHOR
Sean M. Burke "sburke@cpan.org"
perl v5.12.1 2010-04-26 I18N::LangTags::Detect(3pm)