tr
Verified for current stable LTS
Tr Command: Squeeze Identical Characters
Use for squeeze identical characters with Tr. Exact CLI syntax to squeeze identical characters using Tr.
When to use this: Use for squeeze identical characters with Tr.
Command Syntax
tr < <path/to/file> -s '<input_characters>' tr < <path/to/file> -s '<input_characters>' Command Breakdown
-s- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to squeeze identical characters using Tr.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Tr Command: Delete Characters From Input
tr < <path/to/file> -d '<input_characters>' Tr Command: Map Characters From File tr < <path/to/file> '<abcd>' '<jkmn>' Tr Command: Replace Character From Output echo <text> | tr <find_character> <replace_character> Tr Command: Replace Character In File tr < <path/to/file> <find_character> <replace_character> Tr Command: Strip Non Printable Characters tr < <path/to/file> -cd "[:print:]"