tr

ترجمة الأحرف: تنفيذ عمليات الاستبدال بناءً على أحرف مفردة ومجموعات أحرف. لمزيد من التفاصيل: https://www.gnu.org/software/coreutils/manual/html_node/tr-invocation.html.

tr {{find_character}} {{replace_character}} < {{path/to/file}}

echo {{text}} | tr {{find_character}} {{replace_character}}

tr '{{abcd}}' '{{jkmn}}' < {{path/to/file}}

tr {{[-d|--delete]}} '{{input_characters}}' < {{path/to/file}}

tr {{[-s|--squeeze-repeats]}} '{{input_characters}}' < {{path/to/file}}

tr "[:lower:]" "[:upper:]" < {{path/to/file}}

tr {{[-cd|--complement --delete]}} "[:print:]" < {{path/to/file}}