Use this tag for question relating to TOML, Tom's Obvious Minimal Language, which is a structured document format most commonly used for configuration files. Documents written in TOML may be processed using TOML parsers. Some parsers are capable of converting TOML to or from other structured document formats such as YAML, JSON, or XML. TOML-aware tools may offer query capabilities for more advanced queries.
Questions tagged [toml]
4 questions
3
votes
3 answers
Extract text starting at specific category header to next category header from a text file
I have a TOML file in the following format (categories may have any name, the sequential numbering is just an example and not guaranteed):
[CATEGORY_1]
A=1
B=2
[CATEGORY_2]
C=3
D=4
E=5
...
[CATEGORY_N]
Z=26
What I want to achieve is to retrieve…
Educorreia
- 165
- 7
3
votes
2 answers
How to use a toml lens on a single file on Ubuntu 20.04?
I need to read and modify a single file (pcmanfm.conf) in the current directory.
I tried
$ augtool -At "Toml.lns incl $(pwd)/pcmanfm.conf" -I lenses/ print /files
/files
but it does not work. toml.aug (on /usr/share/augeas/lenses/dist/toml.aug)…
Adam Ryczkowski
- 5,493
- 7
- 39
- 60
0
votes
1 answer
Podman: cannot load TOML value of type map
I need to fetch this image for podman but there is a problem on registry.conf
podman gives error
podman run --name myfirstcontainer -it -v /home/jhon:/data:Z manjarolinux/base
Error: error loading registries configuration…
maxemilian
- 121
- 8
-1
votes
2 answers
Combine multiple lines starting with same phrase into one
I'm writing a Bash script to convert Arch Linux packages into a format for a package manager I'm writing, and I have to convert some metadata files into file format .toml. Previously, I've been using sed, but I just need something I can implement…
universeindex
- 7
- 2