F2: A Powerful Command-Line Tool for Batch Renaming Files and Directories

This repository profile is provided by osrepos.com, an open source repository discovery platform.

F2: A Powerful Command-Line Tool for Batch Renaming Files and Directories

Summary

F2 is a cross-platform command-line tool for batch renaming files and directories. Written in Go, it offers a safe and efficient way to manage file names with features like dry run, variable support, and undo functionality. This makes it an invaluable utility for developers and power users alike.

Repository Information

Analyzed by OSRepos on February 4, 2026

Topics

Click on any tag to explore related repositories

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introdução

F2 is a cross-platform command-line tool for batch renaming files and directories quickly and safely. Written in Go, it provides a robust solution for managing file names across Linux, macOS, and Windows. This tool stands out with its focus on safety, performance, and user-friendly features.

Instalação

F2 can be installed in several ways. If you are a Go developer, you can use go install (requires v1.23 or later):

go install github.com/ayoisaiah/f2/v2/cmd/f2@latest

Other installation methods, including pre-compiled binaries for various operating systems, are available on the official documentation or the releases page.

Exemplos

F2 offers comprehensive renaming capabilities, from simple string replacements to complex regular expressions. It supports using file attributes, such as EXIF data for images or ID3 tags for audio files, to provide maximum flexibility. The tool defaults to a dry run, allowing you to review changes before applying them, and includes an undo functionality for easy correction of mistakes.

Porquê usar

F2 distinguishes itself from other renaming tools with several key advantages:

  • Dry Run by Default: Review renaming changes before proceeding.
  • Variable Support: Utilize file attributes like EXIF or ID3 tags for flexible renaming.
  • Safety First: Ensures every renaming operation is conflict-free and error-proof.
  • High Performance: Extremely fast and efficient, even with thousands of files.
  • Undo Functionality: Easily revert any renaming operation to correct mistakes.
  • Extensive Documentation: Clear, practical examples to help users make the most of its features.

Links

Here are some quick links to F2's documentation and resources:

Source repository

Open the original repository on GitHub.

6 counted GitHub visits

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️