Single parse to grab two chunks of string

Hi all,
I'm struggling with this task and have done alot of googling but not found the solution or atleast not found a way to combine them, i'm hoping someone here can help me out.

I have a file that contains many line of config "below is two lines for an example"

323 => 1111,Terry berry home,,,sdfoijdsfiovjfdv
567 => 1111,dim tim work,,,sdfoijdsfiovjfdv

i'm trying to find a way to get the first numbers and then the text between the (,)

the result I want would be :

323 Terry berry
567 dim tim

I have had success at doing both with some awk and cut but i'm not able to get them to combine.

I can cut or awk $1 which gives me the number = great but then I can't get the nice name format.

or

I can get the nice name format but not have the numbers at the beginning
awk -F',' '{print $2}' /vm.txt | awk '{print $1" "$2;}'

I kind of think the hard bit is done and I just need to stick something to grab $1

any takers ?

awk -F'[ ,]' '{print $1,$4,$5}' 3sparky.file

Output:

323 Terry berry
567 dim tim
1 Like

one way:

echo '323 => 1111,Terry berry home,,,sdfoijdsfiovjfdv' | awk -F'[, ]' '{print $1, $4, $5}'
1 Like

thats done it - thats cracking thanky guys