LOCALE(1) BSD General Commands Manual LOCALE(1)NAME
locale -- get locale-specific information
SYNOPSIS
locale [-a | -m]
locale -k list [prefix]
locale [-ck] [keyword ...]
DESCRIPTION
The locale utility is supposed to provide most locale specific information to the standard output.
When locale is invoked without arguments, it will print out a summary of the current locale environment, subject to the environment settings
and internal status.
When locale is invoked with the keyword arguments, and no options are specified, it will print out the values of all keywords specified,
using the current locale settings.
The following options are available:
-a Print names of all available locales. While looking for locales, locale will respect the PATH_LOCALE environment variable, and use
it instead of the system's default locale directory.
-c Print the category name for all selected keywords. If no keywords are selected, print the category name for all defined keywords.
-k Print the names and values of all selected keywords. If no keywords are selected, print the names and values of all defined key-
words.
-m Print names of all available charmaps.
IMPLEMENTATION NOTES
The special (FreeBSD specific) keyword list can be used to retrieve the human readable list of all available keywords. If so, a prefix
string can be defined to limit the amount of keywords returned.
EXIT STATUS
The locale utility exits 0 on success, and >0 if an error occurs.
SEE ALSO setlocale(3)STANDARDS
The locale utility conforms to IEEE Std 1003.1-2004 (``POSIX.1''). The LC_CTYPE, LC_MESSAGES and NLSPATH environment variables are not
interpreted.
BUGS
Since FreeBSD does not support charmaps in their POSIX meaning, locale emulates the -m option using the CODESETs listing of all available
locales.
BSD November 18, 2012 BSD
Check Out this Related Man Page
LOCALE(1) BSD General Commands Manual LOCALE(1)NAME
locale -- get locale-specific information
SYNOPSIS
locale [-a | -m]
locale [-ck] [keyword ...]
DESCRIPTION
The locale utility is supposed to provide most locale specific information to the standard output.
When locale is invoked without arguments it will print out a summary of the current locale environment depending on environment variable set-
tings and internal status.
When locale is invoked with arguments and no options specified it will print out keyword's value determined using current locale settings.
The following options are available:
-a Write names of all available locales. While looking for locales locale will respect the PATH_LOCALE environment variable, and use it
instead of the system default locale directory.
-c Write the category name for the selected keywords.
-k Write the name and value of the selected keywords.
-m Write names of all available charmaps.
IMPLEMENTATION DETAILS
Special (FreeBSD- / NetBSD-specific) keyword list can be used to retrieve a human readable list of available keywords.
DIAGNOSTICS
The locale utility exits 0 on success, and >0 if an error occurs.
STANDARDS
locale conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
locale first appeared in NetBSD 2.0.
AUTHORS
This implementation of locale was originally written by Alexey Zelkin <phantom@FreeBSD.org> for FreeBSD.
BUGS
Since NetBSD does not support charmaps in their POSIX meaning locale emulates the -m option via CODESETs listing of all available locales.
BSD July 4, 2003 BSD
Hi,
I have a file which got only one column and got some keywords. I have another file where the keywords used in the first file are repeated in the second file.
Now I would like to know how many times each keyword from the first file is repeated in the second file.
Request your help on... (1 Reply)
Hi all,
how to recursively search for a list of keywords in a given directory??
for example:
suppose i have kept all the keywords in a file called "procnamelist" (in separate line)
and i have to search recursively in a directory called "target/dir"
if i am not doing recursive search then... (4 Replies)
Hi all,
There may be an obvious answer to this that I am just overlooking.
I have a shell script (sh) that I am running on different locales on z/OS. It executes fine on most locales except for Chinese (zh_CN) and Turkish (tr_TR).
For these languages, the script does not even execute.
For... (2 Replies)
i have a file named keyword.csv(contains around 8k records) which contains a no. of columns.
The 5th column contains all the keywords.
I want to recursively search these keywords in all .pl files(around 1k) and display the filename....Afterthat i will use the filename and some of the column from... (3 Replies)
Assume a string that contains one or multiple occurrences of three different keywords (abbreviated as "kw"). I would like to replace kw2 with some other string, say "qux". Specifically, I would like to replace that occurrence of kw2 that is the first one that is preceded by kw1 somewhere in the... (4 Replies)
I have a lot of files with keywords and unique names. I'm using a shell script to refer to a simple pattern file with comma separated values in order to match on certain keywords. The problem is that I don't understand how to handle the wildcard values when I want to skip over the unique names.
... (5 Replies)
Dear All,
I have a question on what is the best way to control and list out multiple selective keywords to print out the report
Below is the Sample output of the listing
Code1
Code1
Code1
Identifier "Job"
Code2
Code2
Code2
Name "Impressive"
Code3
Code3
Code3
AGT_Manual
Code1... (3 Replies)
I need to split the file contents with multiple rows based on patterns
Sample:
Input:
ABC101testXYZ102UKMNO1092testing
ABC999testKMNValid
Output:
ABC101test
XYZ102U
KMN1092testing
ABC999test
KMNValid
In this ABC , XYZ and KMN are patterns
Continue here./mod]
Please read forum... (1 Reply)
I need to split the file contents with multiple rows based on patterns
Sample:
Input:
ABC101testXYZ102UKMNO1092testing
ABC999testKMNValid
Output:
ABC101test
XYZ102U
KMN1092testing
ABC999test
KMNValid
In this ABC , XYZ and KMN are patterns (6 Replies)