π¦ ClawHub
Printf Tool
by @dinghaibin
Format and print data with precise control over output format. Use for formatted output with padding, precision, and type specifications.
TERMINAL
clawhub install printf-toolπ About This Skill
name: printf-tool description: Format and print data with precise control over output format. Use for formatted output with padding, precision, and type specifications.
Printf - Formatted Output Utility
Format and display data using format specifiers similar to C printf. Supports string, integer, floating-point, and hexadecimal formatting with width and precision control.
Usage
printf-tool [arguments...]
Common Format Specifiers
%s: String%d: Integer%f: Floating point%x: Hexadecimal%05d: Zero-padded integer (5 digits)Examples
printf-tool "Name: %s, Age: %d" "Alice" 30
printf-tool "Price: $%.2f" 19.99
printf-tool "%010d" 42
π‘ Examples
printf-tool "Name: %s, Age: %d" "Alice" 30
printf-tool "Price: $%.2f" 19.99
printf-tool "%010d" 42