Simple Text Reformat (sed and grep)
I have been trying for some time to reformat an output text file into a different form. I have been trying sed and grep and continue to have difficulty. I would appreciate any input:
(D16) - 29.8376244930393
(D17) - 17.97422743561405
- 29.8376244930393, - 17.97422743561405, 82.14585790008447
I have been having all sorts of problems with the negative sign. The command that should work is:
grep -o (-)\?[0-9]*\.[0-9]* || [0-9]*\.[0-9]* < Alpha.txt >> EulerAngles.txt
But it doesn't...
Thanks for the help, there must be a simple solutions to such a simple problem...