A dead simple tool to rename your files for smooth web access!

ffw - Friendly Files for the Web

Easily rename files from a folder to be compatible with the web

Run ffw and that's it!

Installation

  • on macOs
brew tap neonima/ffw
brew install ffw
  • with golang
go get github.com/neonima/fftw
  • 👉 for other platform go the release page and download the binaries you'll need

Usage

Problem

Say that you have these crappy png named files in ./src/images

- src/images/Le fichier galère à renommer 1.png
- src/images/Le fichier galère à renommer 2.png
- src/images/Le fichier galère à renommer 3.png
- src/images/Le fichier galère à renommer 4.png

Solution

simply run cd src/images && ffw or with the source (-s) flag ffw -s ./src/images

- src/images/le_fichier_galere_a_renommer_1.png
- src/images/le_fichier_galere_a_renommer_2.png
- src/images/le_fichier_galere_a_renommer_3.png
- src/images/le_fichier_galere_a_renommer_4.png

Problem

Say that you received crappy png named files alongside files you do not wish to rename

- src/images/mon fichier custom.jeanclaudevandamn
- src/images/Le fichier galère à renommer 1.png
- src/images/Le fichier galère à renommer 2.png
- src/images/Le fichier galère à renommer 3.png
- src/images/Le fichier galère à renommer 4.png

Solution

Add -e=[.your_extension1,.your_extension2]

simply run cd src/images && ffw -e=.png or ffw -s ./src/images -e=.png

- src/images/mon fichier custom.jeanclaudevandamn
- src/images/le_fichier_galere_a_renommer_1.png
- src/images/le_fichier_galere_a_renommer_2.png
- src/images/le_fichier_galere_a_renommer_3.png
- src/images/le_fichier_galere_a_renommer_4.png

How can I check how the files will be changed?

For dry run use -d flag

Help page

NAME:
   ffw - A dead simple tool to rename your file for smooth web access!

USAGE:
   main [global options] command [command options] [arguments...]

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --recursive, -r               Use this flag is you want to rename files recursively (default: false)
   --extensions value, -e value  Only rename the specified extensions
   --source value, -s value      source path where to rename files
   --dry, -d                     shows all the file that will be modified with their new name (default: false)
   --help, -h                    show help (default: false)
Owner
Similar Resources

Vaala archive is a tar archive tool & library optimized for lots of small files.

🐳 Vaar 📦 Vaala archive is a tar archive tool & library optimized for lots of small files. Written in Golang, vaar performs operations in parallel &

Sep 12, 2022

This is a tool to extract TODOs, NOTEs etc or search user provided terms from given files and/or directories.

ado This is a tool to extract TODOs, NOTEs etc or user provided terms from given files and/or directories. DEPRECIATED: My project seek has cleaner co

Aug 11, 2022

AsmVM - is a simple interpretation for nasm kind of files.

AsmVM My lab work for Computing Systems Architecture(CSA) subject in my university. Also was made as a simple example of small Golang CLI tool AsmVM -

Nov 23, 2021

A database/file backup tool with web interfaces

A database/file backup tool with web interfaces

backup-x 带Web界面的数据库/文件备份增强工具。原理:执行自定义shell命令输出文件,增强备份功能。

Dec 26, 2022

Simple but powerful manager for your dotfiles

Simple but powerful manager for your dotfiles

Dotman The dotfile manager you are searching for Version v0.3 [Next] Installer scripts Bug fixes v0.2 [Now] Automatic git support added v0.1 Initial v

Dec 16, 2022

a tool for handling file uploads simple

baraka a tool for handling file uploads for http servers makes it easier to make operations with files from the http request. Contents Install Simple

Nov 30, 2022

Compute message digest for large files in Go

checksum test coverage Compute message digest, like MD5 and SHA256, in golang for potentially large files. Usage package main import ( "fmt" "githu

Dec 28, 2022

copy files for humans

Go-Decent-Copy go-decent-copy provides a copy file for humans Usage package main import "github.com/hugocarreira/go-decent-copy" func main() { e

Sep 26, 2022

Golang wrapper for Exiftool : extract as much metadata as possible (EXIF, ...) from files (pictures, pdf, office documents, ...)

go-exiftool go-exiftool is a golang library that wraps ExifTool. ExifTool's purpose is to extract as much metadata as possible (EXIF, IPTC, XMP, GPS,

Dec 28, 2022
Related tags
Finder is a tool to sort and organize your files.

Finder ?? Finder is a tool to sort and organize your files. Installation ?? Currently, we only support the installation via go directly as shown below

Jan 23, 2022
Split text files into gzip files with x lines

hakgzsplit split lines of text into multiple gzip files

Jun 21, 2022
Easily create Go files from stub files

go-stubs Easily create .go files from stub files in your projects. Usage go get github.com/nwby/go-stubs Create a stub file: package stubs type {{.Mo

Jan 27, 2022
app-services-go-linter plugin analyze source tree of Go files and validates the availability of i18n strings in *.toml files

app-services-go-linter app-services-go-linter plugin analyze source tree of Go files and validates the availability of i18n strings in *.toml files. A

Nov 29, 2021
Paste your GitHub Secrets to files

Paste-Secret Paste your GitHub Secrets in files Usage Inputs Required secrets : Secrets ise JSON object array. Holds filename, keys and values which w

Feb 25, 2022
Release your hatred upon the .DS_Store files

dsgore Ever wanted those annoying .DS_Store files to just be gone in an instant? Or maybe you wanted to be able to forget about them and never see the

Sep 23, 2022
🏵 Gee is tool of stdin to each files and stdout
🏵 Gee is tool of stdin to each files and stdout

Gee is tool of stdin to each files and stdout. It is similar to the tee command, but there are more functions for convenience. In addition, it was written as go. which provides output to stdout and files.

Nov 17, 2022
A tool for moving files into directories by file extensions
A tool for moving files into directories by file extensions

The tool for moving files into directories by file extensions Example before moving structure: moving into same extension dir result: moving into diff

Dec 6, 2021
go tool for working with /etc/hosts files

hostsfile This library, and the associated command line binary, will help you manipulate your /etc/hosts file. Both the library and the binary will le

Dec 30, 2022