TR(1) | General Commands Manual | TR(1) |
tr
— transliterate
bytes
Extract all words (maximal runs of letters) from form:
tr$
cat
form Groceries for February: Bananas 3.5kg $4.51 Kiwis 2kg $3.19 Call Siegfried to explain short! Bread $20.21$
-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
BreadCapitalise 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.21Linux 5.10.0-14-amd64 |