# Preserve order awk '!seen[$0]++' input.txt | xargs command sort -u input.txt | xargs command 8. Summary | Feature | xtool -dd | |-----------------|-------------| | Deduplicate lines | ✅ Yes | | Preserve order | ✅ Yes (first occurrence) | | Case-insensitive | ❌ (unless -i supported) | | Works with pipes | ✅ Yes | | Built-in command execution | ✅ Yes (like xargs) |
file1 file2 file1 file3 file2 Command:
file1 file2 file3 Then pipe to another command: xtool -dd deduplication option
Example replacing awk :
which xtool type xtool If not found, use standard deduplication: # Preserve order awk '
echo -e "a\nb\na\nc" | xtool -dd echo Output: xtool -dd deduplication option
xtool -dd cat dupes.txt | xargs -I{} echo "Processing {}" Check if xtool is an alias or custom script: