Replace Pioneer Home
All Examples
Free Download
all
Advanced search and replace
Replace text in multiple files
Regular expression replace
Batch file rename
Batch download
Text file parser
Text file splitter
Html text generator
Search replace binary
Random word generator
Count and statistics
Character encoding
Bin Hex Oct Dec converter
Text generator
Text sort
Text merge
Text data calculation
RSS: Replace Pioneer Examples
473.Text data calculation -- How to calculate the minimum and maximum value in each line of text?
User:
editor -- 2010-04-10
<< 472
474 >>
Hits:
3785
Type:
Text data calculation
Search all
Text data calculation
examples
Description:
How to calculate the minimum and maximum value in each line of text?
Input Sample:
12 20 8 9 37 55
38 26 19 37 2 8
4 6 99 28 3 7 10
Output Sample:
count=6 min=8 max=55
count=6 min=2 max=38
count=7 min=3 max=99
Answer:
Hint: You need to
Download and install "Replace Pioneer"
on windows platform to finish following steps.
1. ctrl-o open source text file
2. ctrl-h open 'replace' dialog
* set 'Replace Unit' to 'Line'
* set 'Replace with Pattern' to:
count=calc($max-1) min=min(@match[1..$max-1]) max=max(@match[1..$max-1])\n
3. click 'Replace', done!
Download Script:
scripts/473.rst.zip
Screenshot 1: Replace_Window
Similar Examples:
How to calculate md5 hex value of each line of text file?
(75%)
How to calculate the maximum value of the first n lines?
(71%)
How to calculate the summaries of every line in a txt file?
(67%)
How to find out the maximum value in each line for multiple csv file?
(66%)
How to calculate sum value of every column?
(61%)
How to calculate one column base on value of another column?
(58%)
How to find the maximum number in each line that contains 3 numbers?
(58%)
How to calculate summary of every column in a text file?
(57%)
Check Demo of
Text data calculation
Keywords:
how to calculate the minimum
how to calculate the minimum an
minimum
maximum
toc
max
calculate
calculation
calcu
calculat
maximum minimum
calculate text data
line data
replace line data
replace with data
value line
data replace
replace value in text