perl - how to replace , to . in large text file -


i wish use perl , write program looks latitude , longitude values in large tab delimited text file (100000 rows), , replaces , used in lat long values . . file has multiple columns.

ie. want change to.

51,2356 51.2356

can show me how done?

many thanks,

you don't need "program" that, things 1 liners really. if want replace all , (commas) in file . (dots) in entire file (your question doesn't go specifics of original file format) below trick:

perl -pi.bak -e 's/,/\./g;' your_file.txt

it backup file before running replace your_file.txt.bak.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -