EnglishFrenchSpanish

Ad


OnWorks favicon

isoquery - Online in the Cloud

Run isoquery in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command isoquery that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


isoquery - Search and display various ISO codes (country, language, ...)

SYNOPSIS


isoquery [options] [file] [ISO codes]

DESCRIPTION


This manual page documents briefly the isoquery command. It can be used to generate a
tabular output of the ISO standard codes provided by the package iso-codes. It parses the
XML files and shows all included ISO codes or just matching entries, if specified on the
command line. Moreover, it's possible to get all available translations for the ISO
standard.

OPTIONS


This program follows the usual GNU command line syntax, with long options starting with
two dashes ('-'). isoquery supports the following options:

-i standard, --iso=standard
The ISO standard to use. Possible values: 639, 639-3, 639-5, 3166, 3166-2, 4217,
15924 (default: 3166).

-x file, --xmlfile=file
Use another XML file with ISO data (default:
/usr/share/xml/iso-codes/iso_3166.xml).

-l locale, --locale=locale
Use this locale for output.

-n, --name
Name for the supplied codes (default).

-o, --official_name
Official name for the supplied codes. This may be the same as --name (only applies
to ISO 3166).

-c, --common_name
Common name for the supplied codes. This may be the same as --name (only applies to
ISO 3166).

-0, --null
Separate entries with a NULL character instead of newline.

-h, --help
Show summary of options.

-v, --version
Show program version and copyright.

EXAMPLES


If called without any command line options, isoquery will put out a table of all ISO 3166
codes. The first three columns contain the alpha-2 code, the alpha-3 code, and the
numerical code assigned to the country listed in the fourth column.

$ isoquery
AF AFG 004 Afghanistan
[...]
ZW ZWE 716 Zimbabwe

If you need only some countries, you can specify any of the codes in the first three
columns to cut down the output.

$ isoquery so nor 484
SO SOM 706 Somalia
NO NOR 578 Norway
MX MEX 484 Mexico

Should you need the translations of the countries' names, just specify in which locale
you'd like to see the output. Please note that the original English name will be shown if
there is no translation available for the specified locale.

$ isoquery --locale=nl fr de es
FR FRA 250 Frankrijk
DE DEU 276 Duitsland
ES ESP 724 Spanje

All of the above works for different ISO standards as well, so you can switch to the more
extensive standard ISO 3166-2 by using the --iso command line option. The columns are
country code, subset type (e.g. State, Province, etc.), ISO 3166-2 code, parent, and name.
The fourth column (parent) may be empty.

$ isoquery --iso=3166-2
AD Parish AD-07 Andorra la Vella
[...]
ZW Province ZW-MI Midlands

For ISO 639, the first three columns are the ISO 639 2B code, the ISO 639 2T code and the
ISO 639-1 code. The third column may be empty.

$ isoquery --iso=639
aar aar aa Afar
abk abk ab Abkhazian
ace ace Achinese
[...]
zun zun Zuni
zxx zxx No linguistic content; Not applicable
zza zza Zaza; Dimili; Dimli; Kirdki; Kirmanjki; Zazaki

You can trim down the results by specifying only some codes. Moreover, the option to get
translated names is also available.

$ isoquery --iso=639 --locale=pt vi bo kl
vie vie vi Vietnamita
tib bod bo tibetano
kal kal kl Kalaallisut; Greenlandic

If you want to use ISO 639-3, the displayed columns are id, scope, type, part 1 code, part
2 code, and the language name. Both part 1 and part 2 may be empty.

$ isoquery -i 639-3 aal new spa guc
aal I L Afade
new I L new Newari
spa I L es spa Spanish
guc I L Wayuu

ISO 639-5 is also available. The displayed columns are id, parents, and name. The parents
column may be empty.

$ isoquery -i 639-5 aus tut
aus Australian languages
tut Altaic languages

You can get selected translations of currency names from the ISO 4217 standard by using
the following command. The first two columns are the alpha-3 code and the numerical code
assigned to the currency.

$ isoquery --iso=4217 --locale=da cad 392
CAD 124 Canadisk dollar
JPY 392 Yen

If you need to get script names, you can use the ISO 15924 table. The first two columns
are the alpha-4 code and the numerical code assigned to the script.

$ isoquery --iso=15924 jpan latn 280
Jpan 413 Japanese (alias for Han + Hiragana + Katakana)
Latn 215 Latin
Visp 280 Visible Speech

Use isoquery online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    rEFInd
    rEFInd
    rEFInd is a fork of the rEFIt boot
    manager. Like rEFIt, rEFInd can
    auto-detect your installed EFI boot
    loaders and it presents a pretty GUI
    menu of boot option...
    Download rEFInd
  • 2
    ExpressLuke GSI
    ExpressLuke GSI
    This SourceForge download page was to
    grant users to download my source built
    GSIs, based upon phhusson's great
    work. I build both Android Pie and
    Android 1...
    Download ExpressLuke GSI
  • 3
    Music Caster
    Music Caster
    Music Caster is a tray music player
    that lets you cast your local music to a
    Google Cast device. On the first run,
    you will need to click the arrow in your
    tas...
    Download Music Caster
  • 4
    PyQt
    PyQt
    PyQt is the Python bindings for
    Digia's Qt cross-platform
    application development framework. It
    supports Python v2 and v3 and Qt v4 and
    Qt v5. PyQt is avail...
    Download PyQt
  • 5
    Sardi
    Sardi
    Sardi is a complete restyling and
    optimisation of svg code. 6 choices for
    your applications and 10 kind of folders
    to use in your file manager. The sardi
    icons...
    Download Sardi
  • 6
    LMMS Digital Audio Workstation
    LMMS Digital Audio Workstation
    LMMS is a free cross-platform software
    which allows you to produce music with
    your computer. If you like this project
    consider getting involved in the project
    h...
    Download LMMS Digital Audio Workstation
  • More »

Linux commands

Ad