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
累計下載
4705
星標
1
全站排名
#2,018
全站前 40% · 「開發程式設計」前 45%
平台累計安裝累計下載星標評論
ClawHub ↗15647051-
SkillHub ↗20446201—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

幫助按名稱、型別、位置或屬性查詢檔案,並說明過濾、輸出與執行命令時的注意點。

資料釋出於 2026-10-27

可以用來做什麼

  • 按條件搜尋檔案

什麼時候用

  • 使用者需要快速查詢或篩選檔案時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

查詢這個目錄中的 Python 檔案

月度資料趨勢

累計下載4705
3136397948212026-03 · 累計下載 32522026-05 · 累計下載 38862026-06 · 累計下載 40652026-07 · 累計下載 43712026-08 · 累計下載 45612026-09 · 累計下載 470526-0326-09
星標1
0122026-03 · 星標 12026-05 · 星標 12026-06 · 星標 12026-07 · 星標 12026-08 · 星標 12026-09 · 星標 126-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-094705—1
2026-084561+4.3%1
2026-074371+7.5%1
2026-064065+4.6%1
2026-053886—1
2026-033252—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),按月更新。口徑說明見資料方法。