Reputation: 1569
Find and replace first comma in line with a space, for all lines in a file, and for all files in a directory. Windows based solutions only please, I don't have sed etc. I have notepad++ o a regex would be good.
Upvotes: 0
Views: 2886
Reputation: 22149
Get all non-comma characters before a comma into group 1. Match a comma. Get all the characters to line end/end of input into group 2.
^([^,]*),(.*)$
Replace with group 1 + " " + group 2.
\1 \2
Or...
sed 's/,/ /' blah1 > blah2
Upvotes: 3