11-10-2009
6,
0
Join Date: Nov 2009
Last Activity: 2 December 2009, 11:46 AM EST
Posts: 6
Thanks Given: 0
Thanked 0 Times in 0 Posts
Replacing '-' by 0 in a file
Hi,
I have the following data in my file (file.csv):
My.com,21 September 2009,ace,42,0,0,0,-,-
My.com,21 September 2009,adb,3,0,0,0,-,-
My.com,21 September 2009,agp,3,0,0,0,-,-
My.com,21 September 2009,alc,23,0,0,0,-,-
I need to prepare a UNIX script, where the '-' can be relaced by zero (0) throughout the file length.
Please advice.