This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:misc [2025/11/19 23:32] – tmade | linux:misc [2026/06/12 11:07] (current) – [Set variable] tmade | ||
|---|---|---|---|
| Line 35: | Line 35: | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | ====yq==== | ||
| + | yq - commandline YAML processor, to visualize yaml output in a readable way | ||
| + | |||
| + | Example to replace a openshift-route with yq: | ||
| + | |||
| + | oc get route/ | ||
| ====Manipulating Strings==== | ====Manipulating Strings==== | ||
| Line 76: | Line 83: | ||
| Foo | Foo | ||
| </ | </ | ||
| + | |||
| + | ====Set variable==== | ||
| + | Alternative to " | ||
| + | |||
| + | var=" | ||
| + | var=" | ||
| + | echo $var | ||
| + | newvalue | ||
| + | |||
| ====awk==== | ====awk==== | ||