F2 - Command-line batch renaming tool

Moderator: Forum moderators

Post Reply
muggins
Posts: 81
Joined: Mon Aug 31, 2020 1:31 am
Been thanked: 19 times

F2 - Command-line batch renaming tool

Post 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

User avatar
MochiMoppel
Posts: 1116
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 17 times
Been thanked: 359 times

Re: F2 - Command-line batch renaming tool

Post 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.

muggins
Posts: 81
Joined: Mon Aug 31, 2020 1:31 am
Been thanked: 19 times

Re: F2 - Command-line batch renaming tool

Post 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.

Burunduk
Posts: 244
Joined: Thu Jun 16, 2022 6:16 pm
Has thanked: 6 times
Been thanked: 122 times

Re: F2 - Command-line batch renaming tool

Post 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

Last edited by Burunduk on Sun May 07, 2023 11:01 pm, edited 2 times in total.
User avatar
Flash
Moderator
Posts: 897
Joined: Tue Dec 03, 2019 3:13 pm
Location: Arizona, U.S.
Has thanked: 46 times
Been thanked: 105 times

Re: F2 - Command-line batch renaming tool

Post by Flash »

Uh oh. :lol:

Chaos coordinator :?
Post Reply

Return to “Filesystem”