Hongmu Notes

1️⃣ Text filter odd lines

Paste the text and take out the odd lines by line number (lines 1, 3, 5…).

Text filter odd lines

Instructions for use

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

Odd row list

Organize the odd-numbered lines into a separate list for easy comparison with the list of even-numbered lines: the sum of the two lines equals the original text, which is clear to check.

📌 How to compare two lists

First save the odd-numbered lines, then save the even-numbered lines, and then alternately splice them line by line and compare them with the original text. If the splicing result is completely consistent with the original text, it means that there are no missing lines or misalignments in the two lists.

📌 How is the line number calculated?

Count in natural order starting with the first row: row 1 is an odd row, row 2 is an even row, and so on. A blank line also occupies a line number, so the position of the blank line will directly affect the parity of subsequent lines. It is recommended to confirm the blank line status of the original text before processing; if the original text has a newline character at the end, an extra line will not be calculated.

🧭 What scenarios are it commonly used in?

Splitting a text into two parts based on line numbers, sampling from a large text at fixed intervals, and checking whether the exported two columns of data are aligned row by row, all use interlaced sampling. Take odd-numbered rows on this page, and cooperate with "Get even-numbered rows" to complete the split. The sum of the two rows should equal the number of rows in the original text.

All keywords and tutorials 12

❓ FAQ

Is it normal for there to be blank lines in the list?
Normal. When the odd-numbered lines in the original text are blank lines, blank lines will appear in the list. You can use the Delete Blank Lines tool to clean them.
Can I mark it by line number?
No. The output is only the line content without line numbers.
How to perform integrity check on odd-numbered row list
Add the number of lines in the two lists and compare them with the total number of lines in the original text. If they are equal, they are complete.