Format and print data with precise control over output format. Use for formatted output with padding, precision, and...
Format and print data with precise control over output format. Use for formatted output with padding, precision, and type specifications.
Format and display data using format specifiers similar to C printf. Supports string, integer, floating-point, and hexadecimal formatting with width and precision control.
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
---
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
```bash
printf-tool <format> [arguments...]
```
## Common Format Specifiers
- `%s`: String
- `%d`: Integer
- `%f`: Floating point
- `%x`: Hexadecimal
- `%05d`: Zero-padded integer (5 digits)
## Examples
```bash
printf-tool "Name: %s, Age: %d" "Alice" 30
printf-tool "Price: $%.2f" 19.99
printf-tool "%010d" 42
```
文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。