Hi,
In the below code, the integers are seperated by tab and not multiple spaces.
The same way in the
sed command you should give a tab and not multiple spaces. I think problem occurs when you copy the below contents and run. Don't copy the contents, form the data file of your own and run the
sed command.
Let me know if you still face any problem
Code:
/export/home/test/mona>cat tab_del.dat
1press the tab key here2 3 4 5
6 7 8 9 10
/export/home/test/mona>sed 's/ /,/g' tab_del.dat
1,2,3,4,5
6,7,8,9,10