I need to split first column delimited by ‘#’ into two columns. My data is in following format.
1#b,a
2#b,a
5#c,d
Required Output:
1,b,a
2,b,a
5,c,d
Other columns can have # in their values so I want to apply regex only on first column.
Thanks
Jitendra
A file (file.orig) contains this:
Use sed:
Output (
cat file.new):