Hongmu Notes

2️⃣ Text filter even lines

Paste the text and take out the even-numbered lines by line number (lines 2, 4, 6…).

Text filter even lines

Instructions for use

  • Paste multiple lines of text and click "Start Processing" to extract even-numbered lines by line number.
  • If you want to get the other half, please use the "Text Filter Odd Lines" tool
  • All is done locally in the browser, and the input content will not be uploaded.

What can this tool do?

  • Select lines 2, 4, 6... according to line numbers, and delete the remaining lines.
  • Empty lines also participate in counting, and will not cause misalignment due to empty lines.
  • The output maintains the original line order, one item per line, and gives the number of items retrieved.
  • The entire process is processed locally in the browser, and the text is not uploaded.

Actual measurement effect

Input (6 lines total)outputNumber of items
first line
second line
The third line
fourth line
fifth line
Line 6
second line
fourth line
Line 6
3

It can be seen that the even-numbered rows on the row number are taken, and the row content and order remain unchanged.

Usage tips

  • Organize the text into lines before pasting.
  • Empty lines will also be counted. If you need to clear the empty lines first, please use the Delete Empty Lines tool.
  • If you want to get the other half, please use "Text Filter Odd Lines"

All keywords and tutorials 12

❓ FAQ

How are even rows counted?
Count according to the natural line number of the text: lines 2, 4, 6... are even-numbered lines. Blank lines also occupy one line and are also counted.
Will it change the content of the row?
No. The hit lines are output as they are, without clipping or replacement, just removing odd-numbered lines.
How to get odd numbered rows
Just use the accompanying "Text Filter Odd Lines" tool. The rules are completely symmetrical with this page and are suitable for splitting one text into two.
Will the text be uploaded?
No. Filtering is all done locally in the browser, and the text is not uploaded to the server or written to local storage.