I have a file of the form:acaneeraa a c a n ee r aacaneeraa a c a n ee r aaacaneeraa a c n ee r aaachaldaa a c a l d aaachaldaa a ch a l d aaI have to replace the first occurrence of a space with a tab.The expected output is:acaneeraa<tab>a c a n ee r aacaneeraa<tab>a c a n ee r aaacaneeraa<tab>a c n ee r aaachaldaa<tab>a c a l d aaachaldaa<tab>a ch a l d aa<tab> is the tab character and not the text. This tab delimiter separates first field from the second.I visited the following link, but could not get the output.How can I solve this?
Replace first occurrence of space with a TAB
text processing