mirror of
https://github.com/p2p-ld/nwb-linkml.git
synced 2024-11-14 10:44:28 +00:00
5 lines
232 B
Bash
5 lines
232 B
Bash
|
#!/bin/bash
|
||
|
# get the value of a key in the about.yaml file
|
||
|
# https://stackoverflow.com/questions/1221833/pipe-output-and-capture-exit-status-in-bash
|
||
|
grep "^$1:" about.yaml | sed "s/$1:[[:space:]]//" ; test "${PIPESTATUS[0]}" -eq 0
|