Help with sed

Hello
I've serached the forum but could not find a thread to help me with my sed problem.
I have two lines in a file:
-------------------------------------
db2rbind DUMMY /l <path>\bindall_DUMMY.log,/u xxxx,/p yyyy
db2 "flush package cache dynamic",,
-------------------------------------
What i'm not able to do is to replace ,/u xxxx with blank/u xxxx and ,/p yyyy with blank/p yyyy -> blank as blank not as word.

As well i want to replace ,, with no characters -> delete ,,

Any hint or tip?

Thank you in advance.

db2rbind DUMMY /l <path>\bindall_DUMMY.log,/u xxxx,/p yyyy
db2 "flush package cache dynamic",,

cat urfile | sed 's/\/u/ \/u/'

I mean put a space before \\u. Is this what u were looking for. If not then pls clarify what's that blank. I mean how u want ur output to be.

sed -e "s/,\(\/u xxxx\),\(/\p yyyy\)/ \1 \2/g" -e "s/,,//g" input.txt

using Perl:

perl -pi -e 's#,/p yyyy# /p yyyy#;  s#,/u xxxx# /u xxxx#;  s/,,//g;' filename

if yyyy and xxxx do vary sometimes, then you need to adjust the regex accordingly

Thank's vino. Second part (-e "s/,,//g") works fine.
First part: sed: 0602-404 Function s/,/u / /u /g cannot be parsed.

What i want to do is to replace the input
db2rbind DUMMY /l <path>\bindall_DUMMY.log,/u xxxx,/p yyyy with
db2rbind DUMMY /l <path>\bindall_DUMMY.log /u xxxx /p yyyy

There are blanks between log and /u and between xxxx and /p

Thank's to all you for your help.

Basically you want to get rid of the comma's.

sed -e "s/,,//g" -e "s/,/ /g" input.txt

Or this

sed -e "s/,\// \//g" -e "s/,,//g" input.txt

That's it!!!

Thank you very much indeed.

Dhanyavaad (hope it is correct!!)