line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package cli::rows::util; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
52235
|
use 5.006; |
|
1
|
|
|
|
|
3
|
|
4
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
15
|
|
5
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
42
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
cli::rows::util - Utiliites handling text stream segmented by "new line" characters. |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
After installed follwing CLIs (Command Line Interface) are available: |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
expskip -- To see the text data on the 1, 10, 100, .. -th line |
14
|
|
|
|
|
|
|
freq -- Tabulate the frequency of each line (the appearance number table) |
15
|
|
|
|
|
|
|
sampler -- Randomy sample lines. |
16
|
|
|
|
|
|
|
shuffler -- Shuffle the lines |
17
|
|
|
|
|
|
|
alluniq -- Verify whether all lines has different character string or how they are like. |
18
|
|
|
|
|
|
|
idmaker -- Assign sequence codes on each different line. |
19
|
|
|
|
|
|
|
timeput -- Putting the time in the head of each line. |
20
|
|
|
|
|
|
|
eofcheck -- Check whether the file end has new line character. |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Each command has "--help" option so you can see the detail, and the English manual |
23
|
|
|
|
|
|
|
would soon appear. (The oneline help manuals are written in Japanese. ) |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 VERSION |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
Version 0.31 |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=cut |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
our $VERSION = '0.31'; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 AUTHOR |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
"Toshiyuki Shimono", C<< >> |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Copyright 2018 "Toshiyuki Shimono". |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify |
45
|
|
|
|
|
|
|
it under the terms of the GNU General Public License as published by |
46
|
|
|
|
|
|
|
the Free Software Foundation, either version 3 of the License, or |
47
|
|
|
|
|
|
|
(at your option) any later version. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, |
50
|
|
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
51
|
|
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
52
|
|
|
|
|
|
|
GNU General Public License for more details. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License |
55
|
|
|
|
|
|
|
along with this program. If not, see L. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=cut |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
1; # End of cli::rows::util |