The UNIX Operating System

TOP

UP


Ray Seyfarth

ORCA


Computer Science

COST

USM




tr - translate or delete characters


  • tr always reads stdin and writes stdout

  • tr from_chars to_chars

  • tr abc def
    Each a becomes d, each b becomes e and each c becomes f

  • tr a-z A-Z
    Convert to upper case

  • tr -d abc
    Deletes all a's, b's and c's

  • tr -s ' ' ' '
    Convert strings of spaces to single spaces


University of Southern Mississippi
Ray.Seyfarth@usm.edu
Updated 15:45 Sep 13, 2006