nwb-linkml/nwb_schema_language/utils/get-value.sh

5 lines
232 B
Bash
Raw Normal View History

2023-08-16 23:07:36 +00:00
#!/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