App-PTP
view release on metacpan or search on metacpan
lib/App/PTP/Cheat_Sheet.pod view on Meta::CPAN
=item B<--eat>: discard the content of the file
=item B<--ml> I<code> (B<--mark-line>): set the marker for the line with the
return value
=item B<--clear-markers>, B<--set-all-markers>
=item B<--delete-marked>, B<--delete-before>, B<--delete-after>,
B<--delete-at-offset> I<offset>
=item B<--insert-before> I<string>, B<--insert-after> I<string>,
B<--insert-at-offset> I<offset> I<string>: insert interpolated text next to marked
lines (offset I<0> is just after)
=item B<--cut> I<N>,I<N>,...: select fields according to B<-F> and concatenate
them with B<-P>
=item B<--paste> I<file>: paste with B<-P> line by line with the current content
=item B<--pivot>: turn the file into a single line with B<-P>
=item B<--anti-pivot>: split all lines according to B<-F>
=item B<--transpose>: transpose lines and columns using B<-F> and B<-P>
=item B<--nl> (B<--number-lines>), B<--pfn> (B<--prefix-file-name>)
=item B<--fn> (B<--file-name>), B<--lc>, B<--line-count>: replace the content of
the file
=item B<-m> (B<--merge>): merge all the files in a single one
=item B<--tee> I<filename>: duplicate the output
=item B<--shell> I<command>: sends the content as input to the command
=item B<--xargs> I<command>: execute the command (which can contain C<{}>) for each line.
=item B<--push>, B<--pop>: push and pop the entire content of the current file.
=back
=head2 PROGRAM BEHAVIOR
Global option for the program execution.
=over 8
=item B<-o> I<output_file> (B<--output>), B<-a> I<output_file> (B<--append>),
B<-i> (B<--in-place>): by default output to standard output
=item B<-R>, B<--recursive>, B<--input-filter> I<code>: expand directories,
optionally filter input files
=item B<--input-encoding> I<encoding>, B<--output-encoding> I<encoding>: default
is UTF-8
=item B<--input-separator> I<separator>, B<--output-separator> I<separator>:
default is C<\n>
=item B<--eol> (B<--preserve-input-separator>), B<--fix-final-separator>
=item B<-0>: set B<--input-separator> to C<NUL> and B<--output-separator> to the
empty string
=item B<--00>: set B<--output-separator> to C<NUL>, useful with C<xargs -0>
=item B<-h> (B<--help>), B<--cheat>, B<--helpshort>, B<--version>: remember to
have B<perldoc> installed
=item B<-d> (B<--debug>), B<--abort>
=item B<--preserve-perl-env>: keep environment across files
=item B<--safe> [I<n>]: default is I<0>, strictest is I<2>
=back
=head2 PIPELINE MODES
Options for the pipeline commands coming after them. Most modes have a reverse
mode to return to the default.
=over 8
=item B<-I> (B<--case-insensitive>), B<-S> (B<--case-sensitive>): mode for any
I<regex> argument, B<-S> is the default
=item B<-Q> (B<--quote-regexp>), B<-E> (B<--end-quote-regexp>): disable
interpolation in any I<regex>, I<string>, I<filename> or I<command> argument,
B<-E> is the default
=item B<-V> (B<--inverse-match>), B<-N> (B<--normal-match>): inverse behavior of
B<--grep> and B<--filter>
=item B<-L> (B<--local-match>), B<-G> (B<--global-match>): apply B<--substitute>
once per line or as much as possible (this is the default)
=item B<-C> I<code> (B<--comparator>): for B<--sort>, default is C<$a cmp $b>
=item B<-F> I<regex> (B<--input-field-spec>): how to split fields, default is
B<\s*,\*s|\t>
=item B<-P> I<string> (B<--output-field-spec>): how to paste fields, default is
a tab
=item B<--default>, B<--bytes>, B<--csv>, B<--tsv>, B<--none>: set the B<-F> and
B<-P> flags
=item B<--sq> I<string> (B<--single-quote-replacement>),
B<--dq> I<string> (B<--double-quote-replacement>), B<--ds> I<string>
(B<--dollar-sigil-replacement>): replace the given character or string by C<'>,
C<">, or C<$> in all I<code> arguments
=item B<--re> I<engine>, B<--regex-engine>: use the specified regex engine (e.g.
I<RE2>, I<PCRE>, I<TRE>, I<GNU>, etc.) if installed
=item B<-X> (B<--fatal-error>), B<--ignore-error>: die on error in B<--perl>,
B<-n> and B<--filter>
=back
( run in 0.852 second using v1.01-cache-2.11-cpan-98e64b0badf )