Arnarsson

Fd Find

开发编程v1.0.0
作者:Arnarsson更新于 2026-05-11fd-find@clawhub_arnarsson/fd-find
脚本工具

据 AlphaMoat 统计,截至 2026-09,Fd Find 累计下载 4,705 次、获 1 个星标,在全部 5,078 个 AI 技能中排名第 2,018 位,在「开发编程」分类(577 个)中排名第 258 位。

累计安装
204
累计下载
4,705
星标
1
全站排名
#2,018
全站前 40% · 「开发编程」前 45%
平台累计安装累计下载星标评论
ClawHub ↗1564,7051-
SkillHub ↗2044,6201—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

帮助按名称、类型、位置或属性查找文件,并说明过滤、输出与执行命令时的注意点。

资料发布于 2026-10-27

可以用来做什么

  • 按条件搜索文件

什么时候用

  • 用户需要快速查找或筛选文件时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

查找这个目录中的 Python 文件

月度数据趋势

累计下载4,705
3,1363,9794,8212026-03 · 累计下载 3,2522026-05 · 累计下载 3,8862026-06 · 累计下载 4,0652026-07 · 累计下载 4,3712026-08 · 累计下载 4,5612026-09 · 累计下载 4,70526-0326-09
星标1
0122026-03 · 星标 12026-05 · 星标 12026-06 · 星标 12026-07 · 星标 12026-08 · 星标 12026-09 · 星标 126-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-094,705—1
2026-084,561+4.3%1
2026-074,371+7.5%1
2026-064,065+4.6%1
2026-053,886—1
2026-033,252—1

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.3 KB · ClawHub v1.0.0
---
name: fd-find
description: A fast and user-friendly alternative to 'find' - simple syntax, smart defaults, respects gitignore.
homepage: https://github.com/sharkdp/fd
metadata: {"clawdbot":{"emoji":"📂","requires":{"bins":["fd"]},"install":[{"id":"brew","kind":"brew","formula":"fd","bins":["fd"],"label":"Install fd (brew)"},{"id":"apt","kind":"apt","package":"fd-find","bins":["fd"],"label":"Install fd (apt)"}]}}
---

# fd - Fast File Finder

User-friendly alternative to `find` with smart defaults.
展开全部(共 195 行)

## 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`

「开发编程」分类下的热门技能

Arnarsson 的其他技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。