App-Greple-update
view release on metacpan or search on metacpan
- **--update**
- **--update::update**
Update the target file by command output. Entire file content is
produced and any color effects are canceled. Without this option,
**greple** behaves as normal operation, that means only matched lines
are printed.
File is not touched as far as its content does not change.
The file is also not updated if the output is empty. This is to
prevent the contents of the file from being erased if none of the
match strings are included. If you want to intentionally empty a
file, you need to think of another way.
- **--with-backup**\[=_suffix_\]
Backup original file with `.bak` suffix. If optional parameter is
given, it is used as a suffix string. If the file exists, `.bak_1`,
`.bak_2` ... are used.
lib/App/Greple/update.pm view on Meta::CPAN
=item B<--update::update>
Update the target file by command output. Entire file content is
produced and any color effects are canceled. Without this option,
B<greple> behaves as normal operation, that means only matched lines
are printed.
File is not touched as far as its content does not change.
The file is also not updated if the output is empty. This is to
prevent the contents of the file from being erased if none of the
match strings are included. If you want to intentionally empty a
file, you need to think of another way.
=item B<--with-backup>[=I<suffix>]
Backup original file with C<.bak> suffix. If optional parameter is
given, it is used as a suffix string. If the file exists, C<.bak_1>,
C<.bak_2> ... are used.
( run in 0.365 second using v1.01-cache-2.11-cpan-05444aca049 )