But I don't think that's what you meant. That means your sample input & output isn't representative enough of the actual problem.$ cat file.txt old/path/to/some/file another/old/path/to/some/file one/more/old/path/to/some/file $ perl -pe 's#\bold(?=/path/to/some/)#new#g' file.txt new/path/to/some/file another/new/path/to/some/file one/more/new/path/to/some/file
In reply to Re: Writing to a file
by Anonymous Monk
in thread Writing to a file
by victorz22
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |