tr

All posts tagged tr by Linux Bash
  • Posted on
    Featured Image
    The blog article describes using the Bash command `yes | tr \n x` to generate an infinite string until memory overload. It breaks down the `yes` command which repetitively outputs 'y', and the `tr` command which replaces newlines with 'x', forming a continuous 'yx' output. It emphasizes understanding the impact on system resources and includes a sample script for safely demonstrating the command without crashing the system.
  • Posted on
    Featured Image
    The blog details using the `tr` command in Linux Bash to remove non-printable Unicode characters from text files. It outlines the command's function, which translates, deletes, or modifies text input from standard input to output, particularly emphasizing how to delete undesired characters using specific options and character codes to maintain printable text integrity.