~prx/ralf

Rename A Lot of Files
fix typo in readme
more check for safety
check new filename validity

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~prx/ralf
read/write
git@git.sr.ht:~prx/ralf

You can also use your local clone with git send-email.

# ralf : Rename A Lot of Files

ralf is a tiny command line tool to rename a lot of files.
Use regex to match a pattern you want to change and set the replacement.

## Install

run make

## Usage

Pass files to rename as argument to ralf.
Usually, you can glob all files in the current directory.

```
> ralf *
```

## Example

```
> ralf *
a
aaaaa
b
bar
c
foo
xxxx
---
Pattern to replace: [a-c]
with: z
---
a     -> z
aaaaa -> zzzzz
b     -> z
bar   -> zzr
c     -> z
foo   -> foo
xxxx  -> xxxx
---
OK? (Return, or ctrl-c to cancel)

a     -> z
aaaaa -> zzzzz
ralf: z already exist, b is left unchanged
bar   -> zzr
ralf: z already exist, c is left unchanged
bye o/
```

## See also
re_format(7)

Do not follow this link