{"category":"text","endpoint":"https://setget.net/v1/tools/dedupe-lines","examples":[{"input":{"text":"a\nb\na\nc\nb"},"output":{"lines":3,"removed":2,"text":"a\nb\nc"}},{"input":{"case_sensitive":false,"text":"Sam\nsam \nAlex","trim":true},"output":{"lines":2,"removed":1,"text":"Sam\nAlex"},"title":"Ignoring case and stray spaces"}],"input_schema":{"additionalProperties":false,"properties":{"case_sensitive":{"default":true,"description":"Treat upper and lower case as different lines.","type":"boolean"},"keep_blank":{"default":false,"description":"Keep every blank line instead of treating blank lines as duplicates.","type":"boolean"},"text":{"description":"The lines to clean up.","examples":["a\nb\na\nc\nb"],"type":"string"},"trim":{"default":false,"description":"Ignore spaces at the start and end of lines when comparing.","type":"boolean"}},"required":["text"],"type":"object"},"keywords":["remove duplicates","duplicate lines","dedupe","unique lines","deduplicate","uniq","distinct list"],"related":["sort-lines","find-replace","csv-sort-filter-dedupe"],"slug":"dedupe-lines","summary":"Remove repeated lines from text, keeping the first occurrence of each and the original order.","tier":"inline","title":"Remove duplicate lines","url":"https://setget.net/tools/dedupe-lines"}
