I am trying to spool the data from Teradata. The rpoblem which i am facing is , the coulmn data is appended with ".(dot)" for some coulmns. Please find the below data :
Hi Bmk, Thanks for the reply. I would not say that i should remove all the occurence of . in a file. But i need to remove all the "." from the end of each column value .
For example i may get the value like
1234.5678
in the above case i should not remove the ".".
I should remove only the "." only at the end of the each coulumn value
perl -pe ' => The perl language; Execute perl code and print all statements by default
s/ => Substitute
\.(?=[|\s]) => dot that is followed by either a pipe or a whitespace character (' ', '\t', '\n')
// => with nothing
g => and do this globally
' test.txt => File on which perl has to operate