I am confused about a bash script.
I have the following code:
function grep_search() { magic_way_to_define_magic_variable_$1=`ls | tail -1` e
Example below returns value of $name_of_var
var=name_of_var echo $(eval echo "\$$var")