Line Dedupe API
https://api.findutils.com/api/tools/line-dedupe/execute Remove duplicate lines, keeping either the first or the last occurrence. Optionally case-insensitive, trim-aware, or inverted to show only the repeated lines.
Request body
application/json-
text
string required
Newline-separated input.
-
case_sensitive
boolean optional
Case-sensitive comparison. Defaults to true. Default
true. -
trim_lines
boolean optional
Trim each line before comparing. Defaults to true. Default
true. -
keep
string optional
Which occurrence of a repeated line to keep. Surviving lines stay in their original order either way. One of
first · last. Default"first". -
duplicates_only
boolean optional
Return only the lines that appear more than once, one copy each, instead of the deduplicated text. Default
false.
Example arguments
Verified{
"text": "a\nb\na"
} More Text tools
- Bookmarks Diff Compare two Netscape bookmarks.html exports (before and after) and list the links that were added, removed, or changed.
- Case Convert Convert a string between camelCase, PascalCase, snake_case, kebab-case, SCREAMING_SNAKE, Title Case, Sentence case, lower, UPPER.
- Citation Generator Generate a reference-list citation in APA 7, MLA 9, Chicago, or Harvard style for a book, website, journal, or article.
- Code Diff Checker Returns a line-by-line diff of two code snippets: each line marked added, removed or unchanged with its original and modified line numbers…
- Code Highlight Html Returns syntax-highlighted HTML for a code snippet: HTML-escaped text wrapped in <span style="color: ..."> elements using one of six colour…
- Dedupe Bookmarks Remove duplicate links from a Netscape bookmarks.html export (Chrome, Firefox, Edge, Safari) and return a clean bookmarks.html plus a CSV…