I got a format (input):

```
95.56.00.000 root pass|220 smtp1.auchan.hu

```

I want to get (output):

```
root@auchan.hu,root,pass,95.56.00.000:465

```

IP can be anything, also the domain can be anything (including subdomain), but login and password in our company is the same. Also, as you can see, I'll add a port 465 in the output result.

I was trying do it with sed and awk.