Quote:
Originally Posted by lanssu
how i used shell "sed -i" command, replace file log,the file has null data in log file ?
|
The
sed -i .... command changes in-place. If, for whatever reason, you make a mistake then the original file is (partially) gone.
You can force sed to make a backup:
Even safer would be to make a backup copy of the original file.