返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
f

fd-find

A fast and user-friendly alternative to 'find' - simple syntax, smart defaults, respects gitignore.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
3,231
下载量
1
收藏
概述
安装方式
版本历史

fd-find

# fd - Fast File Finder User-friendly alternative to `find` with smart defaults. ## Quick Start ### Basic search ```bash # Find files by name fd pattern # Find in specific directory fd pattern /path/to/dir # Case-insensitive fd -i pattern ``` ### Common patterns ```bash # Find all Python files fd -e py # Find multiple extensions fd -e py -e js -e ts # Find directories only fd -t d pattern # Find files only fd -t f pattern # Find symlinks fd -t l ``` ## Advanced Usage ### Filtering ```bash # Exclude patterns fd pattern -E "node_modules" -E "*.min.js" # Include hidden files fd -H pattern # Include ignored files (.gitignore) fd -I pattern # Search all (hidden + ignored) fd -H -I pattern # Maximum depth fd pattern -d 3 ``` ### Execution ```bash # Execute command on results fd -e jpg -x convert {} {.}.png # Parallel execution fd -e md -x wc -l # Use with xargs fd -e log -0 | xargs -0 rm ``` ### Regex patterns ```bash # Full regex search fd '^test.*\.js$' # Match full path fd --full-path 'src/.*/test' # Glob pattern fd -g "*.{js,ts}" ``` ## Time-based filtering ```bash # Modified within last day fd --changed-within 1d # Modified before specific date fd --changed-before 2024-01-01 # Created recently fd --changed-within 1h ``` ## Size filtering ```bash # Files larger than 10MB fd --size +10m # Files smaller than 1KB fd --size -1k # Specific size range fd --size +100k --size -10m ``` ## Output formatting ```bash # Absolute paths fd --absolute-path # List format (like ls -l) fd --list-details # Null separator (for xargs) fd -0 pattern # Color always/never/auto fd --color always pattern ``` ## Common Use Cases **Find and delete old files:** ```bash fd --changed-before 30d -t f -x rm {} ``` **Find large files:** ```bash fd --size +100m --list-details ``` **Copy all PDFs to directory:** ```bash fd -e pdf -x cp {} /target/dir/ ``` **Count lines in all Python files:** ```bash fd -e py -x wc -l | awk '{sum+=$1} END {print sum}' ``` **Find broken symlinks:** ```bash fd -t l -x test -e {} \; -print ``` **Search in specific time window:** ```bash fd --changed-within 2d --changed-before 1d ``` ## Integration with other tools **With ripgrep:** ```bash fd -e js | xargs rg "pattern" ``` **With fzf (fuzzy finder):** ```bash vim $(fd -t f | fzf) ``` **With bat (cat alternative):** ```bash fd -e md | xargs bat ``` ## Performance Tips - `fd` is typically much faster than `find` - Respects `.gitignore` by default (disable with `-I`) - Uses parallel traversal automatically - Smart case: lowercase = case-insensitive, any uppercase = case-sensitive ## Tips - Use `-t` for type filtering (f=file, d=directory, l=symlink, x=executable) - `-e` for extension is simpler than `-g "*.ext"` - `{}` in `-x` commands represents the found path - `{.}` strips the extension - `{/}` gets basename, `{//}` gets directory ## Documentation GitHub: https://github.com/sharkdp/fd Man page: `man fd`

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 fd-find-1776378899 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 fd-find-1776378899 技能

通过命令行安装

skillhub install fd-find-1776378899

下载 Zip 包

⬇ 下载 fd-find v1.0.0

文件大小: 2.07 KB | 发布时间: 2026-4-17 14:17

v1.0.0 最新 2026-4-17 14:17
- Initial release of the fd-find skill.
- Find files and directories quickly with smart defaults and simple commands.
- Supports advanced filtering by extension, type, size, time, and patterns.
- Integration examples provided for ripgrep, fzf, and bat.
- Respects .gitignore by default and supports parallel file traversal.
- Includes quick start, common use cases, and performance tips.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部