Hi
I'm trying to
1. Replace a comma with a full stop. Tried using
gawk "sub(/,/,.)" 1.txt > 2.txt (failed)
gawk "sub(/,/,test)" 1.txt > 2.txt (it only delete away the comma but it doesn't replace it with test)
When I put numbers as replacement text, it works though.
Can anyone assist?
2. Need advice on converting elasped time to seconds.
Input is "2:13:05.687" need to convert to equivalent seconds.
Appreciate any help
Cheers
I'm trying to
1. Replace a comma with a full stop. Tried using
gawk "sub(/,/,.)" 1.txt > 2.txt (failed)
gawk "sub(/,/,test)" 1.txt > 2.txt (it only delete away the comma but it doesn't replace it with test)
When I put numbers as replacement text, it works though.
Can anyone assist?
2. Need advice on converting elasped time to seconds.
Input is "2:13:05.687" need to convert to equivalent seconds.
Appreciate any help
Cheers