ReachableCEO-ShellScriptPor.../lookup_table.sh

14 lines
215 B
Bash
Raw Normal View History

2024-12-11 19:01:29 +00:00
function lookup_table_<thing>()
{
#Description: Lookup key value pairs in a text file
#Arguments:
#<thing>
#Returns/outputs:
#<value>
export <key>=$(grep $<keyname> <path to file> | awk -F ',' '{print $2}')
}