LinuxCNC Documentation
This page is 31% translated. Untranslated text is shown in English.

OPPSUMMERING

inivar -var variable [-sec section] [-num occurrence_number] [-tildeexpand] [-ini FILE]

BESKRIVELSE

This program has been superseded by inivalue(1). The inivar program is now a script that translates the options and invokes inivalue.

Prints to stdout the INI file result of a variable-in-section search, useful for scripts that want to pick things out of INI files.

Uses emc.ini as default filename. variable needs to be supplied. If section is omitted, first instance of variable will be looked for in any section. Otherwise, only a match of the variable in section will be returned.

VALGMULIGHETER

-var variable

The variable to search for, if multiple matches exists and -num is not specified, the first match is returned.

-sec section

The section to search in, if omitted, all sections are searched.

-num occurrence_number

The occurrence number specifies which instance of the variable within the FILE, and section if provided, should be returned. If omitted, the first matching occurrence is returned.

-tildeexpand

Replace the tilde (~) with the home directory path (equivalent to $(HOME)) in the value obtained from variable in FILE.

-ini FILE

The INI file to search in, defaults to emc.ini.

AVSLUTNINGSSTATUS

0

Success.

1

variable was not found.

-1

Failure.

FEIL

Ingen kjent for øyeblikket.

SE OGSÅ

inivalue(1).

FORFATTER

This man page written by Andy Pugh, as part of the LinuxCNC project.

FEILRAPPORTERING

ÅNDSVERKSRETTIGHETER

Copyright (c) 2020 Andy Pugh.

Dette er fri programvare. Se kilden forbruksvilkår. Det er INGEN garanti, ikke engang når det gjelder SALGBARHET eller EGNETNET FOR ET BESTEMT FORMÅL.