Format and display data using format specifiers similar to C printf. Supports string, integer, floating-point, and hexadecimal formatting with width and precision control.
printf-tool <format> [arguments...]
%s: String%d: Integer%f: Floating point%x: Hexadecimal%05d: Zero-padded integer (5 digits)printf-tool "Name: %s, Age: %d" "Alice" 30
printf-tool "Price: $%.2f" 19.99
printf-tool "%010d" 42
共 1 个版本