I'm not sure how to modify the file since I am unable to load the file in and access the hash. If there is another solution I will be more than happy to implement it.
#what replacement data looks like "new/path/desired/data" "new/path/desired/data" "new/path/desired/data"
#data looks kinda like this key1 => { #some data i don't need #more data i don't need <<'END_SEARCHPATHS', #block of data I want to replace "some/path/to/some/file" "some/path/to/some/file" "some/path/to/some/file" "some/path/to/some/file" "some/path/to/some/file" "some/path/to/some/file" END_SEARCH_PATHS } key2 => { <<'END_SEARCHPATHS', #another block of data to replace "another/path/to/some/file" "another/path/to/some/file" "another/path/to/some/file" "another/path/to/some/file" END_SEARCH_PATHS }
In reply to Re^2: Replacing a block of text inside two keys with another block of text
by victorz22
in thread Replacing a block of text inside two keys with another block of text
by victorz22
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |