I have a script that reads a file and one of 20 steps should search for a "D" and replace the "D" with a carriage return. What would be the command to do this subsitution.
Right now I'm getting to this point and take the file into VI run a macro then start the next script. Any suggestions to do it in one step?
input
17597947.53 1954112.92D 17597947.53 1954098.27D 17597496.95 1953010.46D 17596664.38 1952177.89D 17595576.57 1951727.31D 17594399.15 1951727.31
17593311.34 1952177.89D 17592478.77 1953010.46D 17592028.19 1954098.27D 17592028.19 1955275.69D 17592478.77 1956363.50D
desired output
17597947.53 1954112.92
17597947.53 1954098.27
17597496.95 1953010.46
17596664.38 1952177.89
17595576.57 1951727.31
17594399.15 1951727.31
17593311.34 1952177.89
17592478.77 1953010.46
17592028.19 1954098.27
17592028.19 1955275.69
17592478.77 1956363.50
Thanks
Right now I'm getting to this point and take the file into VI run a macro then start the next script. Any suggestions to do it in one step?
input
17597947.53 1954112.92D 17597947.53 1954098.27D 17597496.95 1953010.46D 17596664.38 1952177.89D 17595576.57 1951727.31D 17594399.15 1951727.31
17593311.34 1952177.89D 17592478.77 1953010.46D 17592028.19 1954098.27D 17592028.19 1955275.69D 17592478.77 1956363.50D
desired output
17597947.53 1954112.92
17597947.53 1954098.27
17597496.95 1953010.46
17596664.38 1952177.89
17595576.57 1951727.31
17594399.15 1951727.31
17593311.34 1952177.89
17592478.77 1953010.46
17592028.19 1954098.27
17592028.19 1955275.69
17592478.77 1956363.50
Thanks