in reply to read from a file and write into the same file
The above command will append a new line containing **************** after every line in the document.> perl -p -i.bak -e "s/(.*)/$1\n****************/" test.txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: read from a file and write into the same file
by almut (Canon) on Mar 03, 2008 at 13:03 UTC | |
|
Re^2: read from a file and write into the same file
by olus (Curate) on Mar 03, 2008 at 10:54 UTC | |
|
Re^2: read from a file and write into the same file
by stiller (Friar) on Mar 03, 2008 at 10:31 UTC |