I'm trying the code below attempting to print "$2" "$5-*")
while IFS= read -r a name x x desc; do
printf '%-15s %s\n' "$name" "$desc"
done < <(grep "^function" ~/.functions)
but it seems that the entire line is being assigned to $a
What am I doing wrong? Running grep (GNU grep) 3.7
Thanks