Closed Calebe94 closed 3 years ago
Given the following file:
parentKey: child1: some value child2: foo child3: bar childAgain: test anotherChild: more value child3: something
When running the following command, the script prints an empty line:
$ tyaml tmenu/arquivo.yaml -k parentKey.child3
The output is:
childAgain anotherChild
Note that tyaml is showing 3 results, one of them is empty.
tyaml
A possible solution will be add an awk at the last echo of the script:
awk
echo
echo $output | awk /./
Given the following file:
When running the following command, the script prints an empty line:
The output is:
Note that
tyaml
is showing 3 results, one of them is empty.A possible solution will be add an
awk
at the lastecho
of the script: