INIVAR(1)

πŸ’– INIVAR(1) β€” the "query an INI file" era πŸ’–

okay so bestie, welcome to the INIVAR(1) page, part of The Enhanced Machine Controller manual set. this little cutie does one thing and does it iconically. let's get into it πŸŽ€


✨ NAME ✨

inivar β€” Query an INI file πŸ¦‹


🌸 SYNOPSIS 🌸

inivar -var <variable> {-sec <section>} {-ini <INI file>}

πŸ’… DESCRIPTION πŸ’…

so like, inivar does stuff for LinuxCNC. periodt. πŸ’«

what it actually does: it prints to stdout the INI file result of a variable-in-section search. which is highkey the most useful thing ever if you're a script that wants to pick things out of INI files. scripts love her, she's the main character of shell one-liners fr fr. πŸ‘‘

and here's the syntax again in case you scrolled past it (no judgement, i do it too πŸ™ˆ):

syntax:  inivar -var <variable> {-sec <section>} {-ini <INI file>}

deets, because you deserve them:

  • uses emc.ini as the default. like, if you don't tell her which file, that's the one she's reading. πŸ’–
  • <variable> needs to be supplied. no variable, no vibe. it's not optional, bestie.
  • if <section> is omitted, the first instance of <variable> will be looked for in any section.
  • otherwise, only a match of the variable in <section> gets returned. no extras, no surprises. πŸ’…

🫢 SEE ALSO 🫢

also!! there's so much more info about LinuxCNC and HAL in the LinuxCNC and HAL User Manuals, which live at /usr/share/doc/LinuxCNC/. go read them, they ate. πŸ“šβœ¨


πŸ’€ BUGS πŸ’€

None known at this time. flawless behaviour, no cap. ✨


🌈 AUTHOR 🌈

this man page was written by andypugh, as part of the LinuxCNC project. king behaviour, honestly. πŸ‘‘


πŸŽ€ REPORTING BUGS πŸŽ€

found something cursed? report bugs at:

https://github.com/LinuxCNC/linuxcnc/issues

go off, they wanna hear it. πŸ”₯


Copyright Β© 2020 andypugh.

This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 😭 (yes that's the scary all-caps part, it means what it says, take it seriously bestie.)


and that's the whole page!! πŸ’– this cutie came from the LinuxCNC Documentation, dated 2020-08-26, filed under INIVAR(1). stan a tiny utility that just works. byeeee πŸ¦‹βœ¨πŸ’