App-Greple
view release on metacpan or search on metacpan
-m, --max=n[,m] max count of blocks to be shown
-A,-B,-C [n] after/before/both match context
--join remove newline in the matched part
--joinby=string replace newline in the matched text with a string
--nonewline do not add newline character at the end of block
--filestyle=style how filenames are printed (once, separate, line)
--linestyle=style how line numbers are printed (separate, line)
--blockstyle=style how block numbers are printed (separate, line)
--separate set filestyle, linestyle, blockstyle "separate"
--format LABEL=... define the format for line number and file name
--frame-top top frame line
--frame-middle middle frame line
--frame-bottom bottom frame line
FILE
--glob=glob glob target files
--chdir=dir change directory before search
--readlist get filenames from stdin
COLOR
--color=when use terminal colors (auto, always, never)
--nocolor same as --color=never
--colormap=color R, G, B, C, M, Y, etc.
--colorsub=... shortcut for --colormap="sub{...}"
--colorful use default multiple colors
--format BLOCK='%s:'
Format string is passed to `sprintf` function. Escape sequences
`\t`, `\n`, `\r`, and `\f` are recognized.
Next example will show line numbers in five digits with tab space:
--format LINE='%05d\t'
- **--frame-top**=_string_
- **--frame-middle**=_string_
- **--frame-bottom**=_string_
Print surrounding frames before and after each block. `top` frame is
printed at the beginning, `bottom` frame at the end, `middle` frame
between blocks.
**Related options:**
**--block**/**-p** (["BLOCKS"](#blocks)),
**--color**/**--colormap** (["COLORS"](#colors))
## FILES
- **--glob**=_pattern_
pages/stylesheets/print.css view on Meta::CPAN
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
pages/stylesheets/styles.css view on Meta::CPAN
@import url(https://fonts.googleapis.com/css?family=Arvo:400,700,400italic);
/* MeyerWeb Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
pages/stylesheets/stylesheet.css view on Meta::CPAN
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
script/greple view on Meta::CPAN
-m, --max=n[,m] max count of blocks to be shown
-A,-B,-C [n] after/before/both match context
--join remove newline in the matched part
--joinby=string replace newline in the matched text with a string
--nonewline do not add newline character at the end of block
--filestyle=style how filenames are printed (once, separate, line)
--linestyle=style how line numbers are printed (separate, line)
--blockstyle=style how block numbers are printed (separate, line)
--separate set filestyle, linestyle, blockstyle "separate"
--format LABEL=... define the format for line number and file name
--frame-top top frame line
--frame-middle middle frame line
--frame-bottom bottom frame line
FILE
--glob=glob glob target files
--chdir=dir change directory before search
--readlist get filenames from stdin
COLOR
--color=when use terminal colors (auto, always, never)
--nocolor same as --color=never
--colormap=color R, G, B, C, M, Y, etc.
--colorsub=... shortcut for --colormap="sub{...}"
--colorful use default multiple colors
script/greple view on Meta::CPAN
' join ! ' => \ my $opt_join ,
' joinby =s ' => \(my $opt_joinby = "") ,
' newline ! ' => \(my $opt_newline = 1) ,
' filestyle |fs =s ' => \(my $opt_filestyle = 'line') ,
' linestyle |ls =s ' => \(my $opt_linestyle = 'line') ,
' blockstyle |bs =s ' => \(my $opt_blockstyle = 'line') ,
' separate ' => sub {
opt('filestyle') = opt('linestyle') = opt('blockstyle') = $_[0];
},
' format =s ' => \ %opt_format ,
' frame-top :s ' => \(my $opt_frame_top = '') ,
' frame-middle :s ' => \(my $opt_frame_middle = '') ,
' frame-bottom :s ' => \(my $opt_frame_bottom = '') ,
##
## FILE
##
' glob =s ' => \ my @opt_glob ,
' chdir =s ' => \ my @opt_chdir ,
' readlist ! ' => \ my $opt_readlist ,
##
## COLOR
script/greple view on Meta::CPAN
my $blockend = "--";
if (defined $opt_blockend) {
$blockend = expand_escape($opt_blockend);
}
my $_file = sub { $color_handler->color('FILE' , sprintf($opt_format{FILE}, $_[0])) };
my $_line = sub { $color_handler->color('LINE' , sprintf($opt_format{LINE}, $_[0])) };
my $_block = sub { $color_handler->color('BLOCK', sprintf($opt_format{BLOCK}, $_[0])) };
my $_text = sub { $color_handler->color('TEXT' , $_[0]) };
my $_blockend = $color_handler->color('BLOCKEND', $blockend);
my $_top = $color_handler->color('TOP' , $opt_frame_top);
my $_middle = $color_handler->color('MIDDLE' , $opt_frame_middle);
my $_bottom = $color_handler->color('BOTTOM' , $opt_frame_bottom);
sub index_color {
$color_handler->index_color(@_);
}
sub color {
$color_handler->color(@_);
}
my $uniq_color = UniqIndex->new(
script/greple view on Meta::CPAN
--format BLOCK='%s:'
Format string is passed to C<sprintf> function. Escape sequences
C<\t>, C<\n>, C<\r>, and C<\f> are recognized.
Next example will show line numbers in five digits with tab space:
--format LINE='%05d\t'
=item B<--frame-top>=I<string>
=item B<--frame-middle>=I<string>
=item B<--frame-bottom>=I<string>
Print surrounding frames before and after each block. C<top> frame is
printed at the beginning, C<bottom> frame at the end, C<middle> frame
between blocks.
=back
B<Related options:>
B<--block>/B<-p> (L</BLOCKS>),
B<--color>/B<--colormap> (L</COLORS>)
=head2 FILES
( run in 0.768 second using v1.01-cache-2.11-cpan-e1769b4cff6 )