Need to parse the multiple definitions from a single line and assign

Hi,
I need a help on my requirement that
eg:

  NEED="TEST=Name WORK=Ps DEL=let"

Here the definition can be n number, could anybody have an idea to get the output as,

TEST=Name
WORK=Ps
DEL=let

..
..
till the 'n' definitions listed.

Any suggestions please.....

Regards,
ricky

$ cat tmp.dat
NEED="TEST=Name WORK=Ps DEL=let"

$ perl -ne '@assignments=$_=~/(\w+=\w+)/g;}{print join("\n",@assignments);' tmp.dat
TEST=Name
WORK=Ps
DEL=let
$
echo "${NEED// /$'\n'}"
TEST=Name
WORK=Ps
DEL=let
1 Like
$ printf "%s\n" $NEED
TEST=Name
WORK=Ps
DEL=let
1 Like

Thanks for the code @RudiC. But I need to implement this in .mk file Makefile, Is there any suggestion for implementing this in Makefile

Please become accustomed to provide decent context info of your problem.
It is always helpful to carefully and detailedly phrase a request, and to support it with system info like OS and shell, related environment (variables, options), preferred tools, adequate (representative) sample input and desired output data and the logics connecting the two, and, if existent, system (error) messages verbatim, to avoid ambiguities and keep people from guessing.

Sorry,
I will have a note of it for the future queries. Thanks