Page 1 of 1

F2 - Command-line batch renaming tool

Posted: Sun Oct 24, 2021 6:15 am
by muggins

https://github.com/ayoisaiah/f2

F2 is a cross-platform command-line tool for batch renaming files and directories quickly and safely. Written in Go!

I downloaded an already compiled binary from:

https://github.com/ayoisaiah/f2/releases


Re: F2 - Command-line batch renaming tool

Posted: Wed Oct 27, 2021 6:28 am
by MochiMoppel

@muggins :thumbup2: Nice find! Did you try it?

This is an incredibly powerful renaming tool and certainly deserves some attention
1) Only 1 binary file
2) Works nicely in my ancient Slacko 5.6
3) Still actively developed
4) Well documented with many examples

As all command line tools it lacks some user friendliness and requires to study the syntax, but that's a small price to pay. It can rename files in a way no other renaming tool I've ever seen can.

What Puppy users may miss is the possibility to rename files selected in ROX-Filer. However this could be done with a script that takes a ROX-Filer selection as input.


Re: F2 - Command-line batch renaming tool

Posted: Fri Oct 29, 2021 4:17 am
by muggins

Hello MochiMoppel,

I only gave it a short test, just to check it works in my pupversion. But, yes, it is fast & powerful & it would be
good if someone could write a frontend for it.


Re: F2 - Command-line batch renaming tool

Posted: Sat Aug 13, 2022 12:36 pm
by Burunduk

New version:

1.8.0 (2022-02-22)

Add a "simple mode" for quick renaming operations in the current directory.

1.9.0 (2023-02-02)

Simple mode now prompts before executing.
You can now use capture variables with indexing.

A simple mode example: f2 '\.jpg$' .jpeg

Edit: Hopefully a less funny example. The good thing is that it's possible to undo funny results of the latest f2 command with f2 -ux.
Edit 2: New version: 1.9.0


Re: F2 - Command-line batch renaming tool

Posted: Sat Aug 13, 2022 6:41 pm
by Flash

Uh oh. :lol: