f2 for Mac
Command-line batch renaming tool
f2 — overview
Read this in other languages: Deutsch | Español | Français | Português | Русский | 繁體中文
F2 - Command-Line Batch Renaming
F2 is a cross-platform command-line tool for batch renaming files and directories quickly and safely. Written in Go!
What does F2 do differently?
Compared to other renaming tools, F2 offers several key advantages: Dry Run by Default: It defaults to a dry run so that you can review the renaming changes before proceeding. Variable Support: F2 allows you to use file attributes, such as EXIF data for images or ID3 tags for audio files, to give you maximum flexibility in renaming. Comprehensive Options: Whether it's simple string replacements or complex regular expressions, F2 provides a full range of renaming capabilities. Safety First: It prioritizes accuracy by ensuring every renaming operation is conflict-free and error-proof through rigorous checks. Conflict Resolution: Each renaming operation is validated before execution and detected conflicts can be automatically resolved. High Performance: F2 is extremely fast and efficient, even when renaming thousands of files at once. Undo Functionality: Any renaming operation can be easily undone to allow the easy correction of mistakes. Extensive Documentation: F2 is well-documented with clear, practical examples to help you make the most of its features without confusion.
⚡ Installation
If you're a Go developer, F2 can be installed with go install (requires v1.23 or later):
Other installation methods are documented here or check out the releases page to download a pre-compiled binary for your operating system.
? Quick links Installation Getting started tutorial Real-world example Built-in variables File pair renaming Renaming with a CSV file Sorting Resolving conflicts Undoing renaming mistakes CHANGELOG
? Screenshots
? Contribute
Bug reports and feature requests are much welcome! Please open an issue before creating a pull request.
⚖ Licence
Created by Ayooluwa Isaiah and released under the terms of the MIT Licence.
Details
命令行批量重命名工具
How to install f2
- Open Terminal (press ⌘ + Space and type “Terminal”).
- If Homebrew is not installed yet, run the command below first.
- Run this command:
Latest 10 releases
Last updated 2025-11-10; current version v2.2.2, with the latest 10 releases listed.
| Version | Released | Type | Size | macOS | Windows | Linux |
|---|---|---|---|---|---|---|
| v2.2.2 | 2025-11-10 | Stable | 5.1 MB | Download | Download | Download |
| v2.2.1 | 2025-09-14 | Stable | 5.1 MB | Download | Download | Download |
| v2.2.0 | 2025-09-08 | Stable | 5.1 MB | Download | Download | Download |
| v2.1.2 | 2025-05-27 | Stable | 4.5 MB | Download | Download | Download |
| v2.1.1 | 2025-05-16 | Stable | 4.5 MB | Download | Download | Download |
| v2.1.0 | 2025-05-01 | Stable | 2.4 MB | Download | Download | Download |
| v2.0.3 | 2024-11-23 | Stable | 2.3 MB | Download | Download | Download |
| v2.0.2 | 2024-11-22 | Stable | 2.3 MB | Download | Download | Download |
| v2.0.1 | 2024-11-06 | Stable | 2.3 MB | Download | Download | Download |
| nightly | 2026-11-10 | Pre-release | 5.7 MB | Download | Download | Download |
Data from GitHub Releases; stable releases first, each group sorted newest first.
Compared with similar apps
Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.
| App | Version | License | Architecture | 30-day installs |
|---|---|---|---|---|
| f2 | v2.2.2 | MIT | CLI | 13 |
| renameutils | 0.12.0 | GPL-3.0-or-later | CLI | 12 |
| volcano-cli | v1.15.4 | Apache-2.0 | CLI | 5 |
| task-spooler | 1.0.4 | GPL-2.0-only | CLI | 15 |
Similar apps: Command-line Tools
renameutils
renameutils is a collection of command-line file renaming tools aimed at users who are…volcano-cli
CLI for Volcano, Cloud Native Batch Systemtask-spooler
Task Spooler is a command-line tool for queuing up tasks.imgp
Watch imgp resize a directory of images in lightning speed!rnr
RnR is a command-line tool to securely rename multiple files and directories that supports…nomino
Batch rename utility for developersCategories: Command-line Tools