unix utility

All posts tagged unix utility by Linux Bash
  • Posted on
    Featured Image
    In the world of UNIX and Linux, simple commands are the strongholds that make complex tasks feasible. One such command that often flies under the radar but is incredibly powerful in text processing is the tr command. Short for "translate", tr is used for transforming and deleting characters from input text. It reads bytes from the standard input, processes them to make required substitutions, and writes the result to standard output. This might not sound glamorous at a first glance, but its utility in scripting and text manipulation is unmeasurable. The syntax of tr is straightforward : tr [OPTION] SET1 [SET2] Here, SET1 is the set of characters to be replaced or removed, and SET2 is the set of characters to replace with.