in reply to Make a copy of a line and add it back to the same file

you can always read the file to an array, work on the array (change the necessary line), and print back the array to the file.

Hotshot
  • Comment on Re: Make a copy of a line and add it back to the same file