Bytepliers Lines tools: sort, prefix, split and join, filter, wrap
Reference for the 6 Bytepliers Lines tools: Line Tools, Prefix & Suffix, Split & Join, Filter Lines, Shuffle & Sample and Wrap & Unwrap. Options, defaults and limits.
Updated 3 min read
On this page
The Lines group holds tools that treat text as a list of lines. For the other groups, see the Bytepliers tools list.
| Tool | Id | Subtitle |
|---|---|---|
| Line Tools | lines | Sort, dedupe, reverse, trim and count lines |
| Prefix & Suffix | linePrefix | Add text to every line, wrap lines in quotes, number lines |
| Split & Join | splitJoin | Split on a delimiter, join lines, add or remove line breaks |
| Filter Lines | lineFilter | Keep or remove lines that contain text or match a pattern |
| Shuffle & Sample | shuffleLines | Shuffle lines or words, pick random samples, scramble letters |
| Wrap & Unwrap | textWrap | Hard-wrap text at a column or join wrapped paragraphs |
The five 1.1 tools (all except Line Tools) update live, accept up to 64 MB and remember their options between launches.
Line Tools
Id lines.
- Operation: Sort A→Z (default), Sort Z→A, Natural sort, Sort by length, Remove duplicates (keeps the first), Reverse, Trim whitespace, Remove empty, Shuffle or Number lines.
- Case sensitive: on by default. Shown for Sort A→Z, Sort Z→A, Natural sort and Remove duplicates.
- Apply to Input: replaces the input with the result, so you can chain operations.
- Status line: counts lines, non-empty lines, unique lines and words.
- Transforms: Sort Lines, Sort Lines Z→A, Remove Duplicate Lines, Reverse Lines, Trim Lines, Remove Empty Lines, Number Lines, Prefix Each Line.
Prefix & Suffix
Id linePrefix. New in 1.1.
- Fields: a Prefix and a Suffix added to every line. The suffix starts as
,. - Wrap: wraps each line in double quotes (default), single quotes, backticks, parentheses, square brackets, braces or angle brackets, or None. With the defaults, a list of lines becomes a quoted, comma-separated list:
"a",…"z". - Number Lines (off): adds numbers, with Start 1, Step 1, Padding (none, zeros
01or spaces) and a separator (.by default). - Options menu: Skip Empty Lines (on), Trim Lines First (off), No Suffix on Last Line (on) and Escape Quotes Inside Lines (off). Reset Options restores all of them.
Split & Join
Id splitJoin. New in 1.1.
- Modes: Split (default), Join, Remove Breaks and Add Breaks.
- Split On / Join With: Comma (default), Comma + Space, Semicolon, Tab, Space, Any Whitespace, Pipe, New Line or Custom (
\tand\nallowed). Split also takes a Regex. - Options menu (Split and Join): Trim Items and Drop Empty Items, both on. Join adds Quote Items: none (default), double, single or backtick.
- Remove Breaks: joins lines into one. Keep Paragraphs (on) keeps blank lines as paragraph breaks.
- Add Breaks: breaks After Sentences (default), Every N Words (10 by default) or After Text you type.
- Swap turns a split into a join and back.
Filter Lines
Id lineFilter. New in 1.1.
- Filter Lines mode (default): Keep (default) or Remove lines that are Containing (default), Starting With, Ending With, Equal To, Matching Regex or Empty.
- Switches:
Aamatch case (off) anda,bany of several comma-separated terms (off). - Duplicate Words mode: removes words Repeated in a Row (default), Every Repeat, or Repeats Within a Line.
To compare two lists instead, use List Compare.
Shuffle & Sample
Id shuffleLines. New in 1.1.
- Modes: shuffle Lines (default) or Words, Sample random lines, or Scramble the letters inside words.
- Sample: Pick 5 lines by default (1 to 100,000). Keep Order (off) lists the picks in their original order.
- Scramble: Keep First & Last Letter is on.
- Reshuffle (⌘R) shuffles again.
- Seed: Random by default. Turn on Use a Fixed Seed (a number or text,
42to start) to get the same order every time for the same input.
Wrap & Unwrap
Id textWrap. New in 1.1.
- Wrap (default): hard-wraps at Column 72 (8 to 1,000, with quick picks 40, 72, 80, 100 and 120). An optional Line prefix such as
>or//is added to every line. - Wrap options: Join Lines Before Wrapping (on), Break Words Longer Than the Column (off) and Indent none (default), 2, 4 or 8 spaces.
- Unwrap: joins wrapped lines back into paragraphs. Strip Quote / Comment Prefix (on) removes a prefix first; leave the prefix field empty to detect
>,//or#. - Swap wraps the unwrapped text, or the other way round.
- Transform: Unwrap Paragraphs (
unwrap).