79438871

Date: 2025-02-14 09:22:23
Score: 1
Natty:
Report link

The other answers require a Bash shell.

You could also pass the awk output to a function:

process_vars()
{
  var1="$1"
  var2="$2"
}
process_vars $(awk 'BEGIN { print "foo"; print "bar" }')
echo $var1
echo $var2
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user29642469