in reply to [SOLVED] copying a file with .bak extension
#! /usr/bin/perl -i.bak
As the first line of the script it should automatically save the backup copy and write output into the original file.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: copying a file with .bak extension
by Anonymous Monk on Nov 07, 2012 at 18:43 UTC | |
|
Re^2: copying a file with .bak extension
by jaffinito34 (Acolyte) on Nov 07, 2012 at 18:37 UTC | |
|
Re^2: copying a file with .bak extension
by Lotus1 (Vicar) on Nov 07, 2012 at 19:20 UTC |