Redirecting grep output to multiple files

Hi All,

I am trying to redirect the grep output to multiple files, can you please help with that.

Below is the command im using to match my pattern

grep \<proxyType\>$PxyType $DIR/EndureFiles.json > File_Name*.json

Note : $DIR and $PxyType is already defined in my script

Im able to redirect the output to single file through > File_Name.json

However not able to redirect the each line to different files.

I have tried > File_Name*.json , but it is not doing my job. Can you please help me with that.

I want the each line of the grep output to go into different files.