F2 - Command-line batch renaming tool

Moderator: Forum moderators

Post Reply
muggins
Posts: 91
Joined: Mon Aug 31, 2020 1:31 am
Been thanked: 21 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: 1236
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 439 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: 91
Joined: Mon Aug 31, 2020 1:31 am
Been thanked: 21 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: 252
Joined: Thu Jun 16, 2022 6:16 pm
Has thanked: 7 times
Been thanked: 127 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: 978
Joined: Tue Dec 03, 2019 3:13 pm
Location: Arizona, U.S.
Has thanked: 51 times
Been thanked: 127 times

Re: F2 - Command-line batch renaming tool

Post by Flash »

Uh oh. :lol:

Chaos coordinator :?
bob93
Posts: 53
Joined: Fri Nov 25, 2022 8:29 am
Location: Fossapup64 9.5
Has thanked: 21 times
Been thanked: 1 time

Re: F2 - Command-line batch renaming tool

Post by bob93 »

muggins wrote: Sun Oct 24, 2021 6:15 am

I downloaded an already compiled binary from:

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

Hi there. How do I install it? Do I download the deb package?

Fossapup64 9.5

muggins
Posts: 91
Joined: Mon Aug 31, 2020 1:31 am
Been thanked: 21 times

Re: F2 - Command-line batch renaming tool

Post by muggins »

If you download https://github.com/ayoisaiah/f2/release ... d64.tar.gz then you can extract the f2 binary. To have it it your path, just move it to /usr/bin/

Edit: I changed the link from the development release to the stable version.

Geek3579
Posts: 269
Joined: Sat Jul 18, 2020 1:07 pm
Has thanked: 80 times
Been thanked: 68 times

Re: F2 - Command-line batch renaming tool

Post by Geek3579 »

Looks good.

For more complex renaming tasks like renumbering etc I have tried MultiRename which is OOTB in Bookwormpup64 under the Filesystem menu.

Worth trying.

Post Reply

Return to “Filesystem”