Count Repeated Lines
Count Repeated Lines lets you report the frequency of each exact line without losing first-seen order. Enter your own values or load the worked example.
- Copy or download the computed result
- Adjust input text
- See the processing method and limits
Method and calculation
Report the frequency of each exact line without losing first-seen order.
Inputs and settings
Count Repeated Lines accepts Input text.
Worked example
Count Repeated Lines example — Input text: "Hello world\nA second line\nHello world". Computed output: [ { "line": "Hello world", "count": 2 }, { "line": "A second line", "count": 1 } ]
Output and limitations
Repeated records are reported alongside their exact frequency. The comparison is case-sensitive and includes whitespace, so a padded record is distinct from an unpadded record. First-seen ordering is preserved to help relate the report back to the original input.
Technical references: JavaScript Unicode normalization