/fseek <name> <position>

Sets the read/write pointer to the specified position in the file. The following switches may also be used to move the file pointer:

-l <name> <line number>

So you'd probably want to use that to move the pointer to the line where the *new* url's start.