Skip to content
Text Mechanic
Lists

Extract Lines

Take a range of lines, the first or last few, or every nth line.

Selects lines by position rather than by content: a range, the first or last few, or every nth. Inverting the selection keeps everything you did not pick, which turns any of these into a deletion.

Options

Inclusive. Use 0 to run to the end.

InputText is processed entirely in your browser.
0lines0words0characters0 B
Output
0lines0words0characters0 B

Options explained

  • To lineInclusive. Use 0 to run to the end.
  • Take every2 takes every second line, 3 every third.