🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ 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.

Versionv1.0.0
Downloads414
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