TR(1) General Commands Manual TR(1)

trtransliterate bytes

Extract all words (maximal runs of letters) from form:

$ cat form
Groceries for February:
    Bananas    3.5kg     $4.51
    Kiwis      2kg       $3.19     Call Siegfried to explain short!
    Bread                $20.21
$ 
tr -cs "[:alpha:]" "\n" < form # Only compatible with the BSD! $ tr -cs "[:alpha:]" "[\n*]" < form Groceries for February Bananas kg Kiwis kg Call Siegfried to explain short Bread

Capitalise that same form:

$ 
tr "[:lower:]" "[:upper:]" < form GROCERIES FOR FEBRUARY: BANANAS 3.5KG $4.51 KIWIS 2KG $3.19 CALL SIEGFRIED TO EXPLAIN SHORT! BREAD $20.21
Linux 5.10.0-14-amd64