Jeff,
Here are examples from the two text files I have. The first has the data that needs to be changed, formatted into columns. The first column is the value to be replaced:
1-A 50 3017.1N 4922.5E 301841 927850
1-A 51 3017.9N 4923.3E 301834 927530
1-A 52 3018.7N 4924.0E 301826 276011
1-A 53 3019.5N 4924.8E 301819 976092
1-A 54 3020.4N...
User Profile
Collapse
-
Replacing multiple strings in a file
Hello,
I am very new to perl and I am having trouble figuring out how to replace multiple strings in a single file. The file has something around 750k instances that need to be replaced with 350 different values:
1-A needs to be replaced with 12-FOO-1-A
2-B needs to be replaced with 44-BAR-2-B
1-400 needs to be replaced with 123-D1-400
(and 347 more)
How would I set up a program to...
No activity results to display
Show More
Leave a comment: