-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
82 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
// Settings: | ||
:toc: macro | ||
:!toc-title: | ||
// URLs: | ||
:url-cv: http://cv.rabkin.co.il | ||
:url-license: https://github.com/rdavid/renamr/blob/master/LICENSE | ||
:url-vale: https://vale.sh | ||
:url-yamllint: https://github.com/adrienverge/yamllint | ||
|
||
= Renamr | ||
|
||
image:https://ci.appveyor.com/api/projects/status/cca9iog230smu3k2?svg=true[build,link=https://ci.appveyor.com/project/rdavid/renamr] | ||
image:https://github.com/rdavid/renamr/actions/workflows/rubocop.yml/badge.svg[rubocop,link=https://github.com/rdavid/renamr/actions/workflows/rubocop.yml] | ||
image:https://badge.fury.io/rb/renamr.svg[gem,link=https://badge.fury.io/rb/renamr] | ||
image:https://api.codeclimate.com/v1/badges/406f1433b0b9e0509a6e/maintainability[maintainability,link=https://codeclimate.com/github/rdavid/renamr/maintainability] | ||
image:https://hitsofcode.com/github/rdavid/renamr?branch=master&label=hits%20of%20code[hits of code,link=https://hitsofcode.com/view/github/rdavid/renamr] | ||
image:https://img.shields.io/badge/code_style-rubocop-brightgreen.svg[ruby style,link=https://github.com/rubocop/rubocop] | ||
image:https://img.shields.io/github/license/rdavid/renamr?color=blue&labelColor=gray&logo=freebsd&logoColor=lightgray&style=flat[license,link=https://github.com/rdavid/renamr/blob/master/LICENSE] | ||
|
||
toc::[] | ||
|
||
== About | ||
|
||
`renamr` organizes file and directory names. | ||
|
||
== Installation | ||
|
||
The tool is designed to work on macOS, GNU/Linux, Windows, Unix-like OS. | ||
It is packaged as a Gem and require Ruby version 2.6 or later. | ||
See "`https://www.ruby-lang.org/en/documentation/installation/[Installing Ruby]`" if you don't have the proper version on your platform. | ||
|
||
Use this command to install: | ||
|
||
[,sh] | ||
---- | ||
gem install renamr | ||
---- | ||
|
||
=== Updating | ||
|
||
Use this command to update the package: | ||
|
||
[,sh] | ||
---- | ||
gem update renamr | ||
---- | ||
|
||
=== Requirements | ||
|
||
There are no requirements. | ||
|
||
== Usage | ||
|
||
[,sh] | ||
---- | ||
renamr [options] | ||
-a, --act Real renaming. | ||
-r, --rec Passes recursively. | ||
-l, --lim Limits name length. | ||
-m, --mod Prepends modification time. | ||
-d, --dir dir Directory to rename. | ||
-s, --src src A string to substitute. | ||
-t, --dst dst A string to replace to. | ||
-w, --wid wid Width of the table. | ||
-p, --pre str,beg A string to prepend to started from beg. | ||
-c, --cut pos,len Removes len symbols from pos. | ||
-v, --version Shows version. | ||
---- | ||
|
||
=== Example | ||
|
||
[,sh] | ||
---- | ||
renamr -d <source> | ||
---- | ||
|
||
It renames all files in `source` by default pattern: 26 English letters, 10 numbers, minus for spaces and other symbols. | ||
|
||
== License | ||
|
||
`renamr` is copyright {url-cv}[David Rabkin] and available under a | ||
{url-license}[Zero-Clause BSD license]. |