← 返回命令列表

Linux command

uc 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Uppercase

echo "[straße]" | uc

Uppercase

uc < [input.txt] > [output.txt]

Round-trip

cat [file.txt] | uc | lc

Uppercase ligatures

printf "[ffi]\n" | uc

说明

uc reads text from standard input (or the named files), applies the full Unicode toUpper case mapping, and writes the result to standard output. Unlike a naive tr 'a-z' 'A-Z', it handles case folds that change length (German ß → SS, the ffi ligature → FFI) and respects language-specific rules for Greek, Cyrillic, Armenian, and other scripts. It ships as one of roughly thirty small filter scripts in Tom Christiansen's Unicode::Tussle Perl distribution, alongside companions such as lc (lowercase), tc (titlecase), nfd/nfc/nfkd/nfkc (normalization), ucsort, uniwc, and tcgrep — together forming a Unicode-correct replacement for many GNU coreutils.

FAQ

What is the uc command used for?

uc reads text from standard input (or the named files), applies the full Unicode toUpper case mapping, and writes the result to standard output. Unlike a naive tr 'a-z' 'A-Z', it handles case folds that change length (German ß → SS, the ffi ligature → FFI) and respects language-specific rules for Greek, Cyrillic, Armenian, and other scripts. It ships as one of roughly thirty small filter scripts in Tom Christiansen's Unicode::Tussle Perl distribution, alongside companions such as lc (lowercase), tc (titlecase), nfd/nfc/nfkd/nfkc (normalization), ucsort, uniwc, and tcgrep — together forming a Unicode-correct replacement for many GNU coreutils.

How do I run a basic uc example?

Run `echo "[straße]" | uc` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more uc examples?

This page includes 4 examples for uc, plus related commands for nearby Linux tasks.