Catalog app · RISC-V VM
Run rnr in the browser
Rename many files and directories at once with a regex — dry run by default.
Try it live
Nothing is downloaded until you press Run.
Preview a rename (dry run)
Installs rnr 0.5.1 from the signed catalog (every chunk is verified before it is written), then runs the commands below in the VM's shell.
bash
rnr --version rnr regex draft final draft-a.md
Expected output
$ rnr --version rnr 0.5.1 $ rnr regex draft final draft-a.md This is a DRY-RUN draft-a.md -> final-a.md
What it is
rnr renames files whose names match a regular expression, with capture groups in the replacement. It only prints the planned renames unless you pass -f, and can write a dump to undo a run.
Package facts
- version
0.5.1- runs on
- RISC-V VM (
elf-app,riscv64gc-linux-musl) - download
- 1.5 MB compressed · 1 file
- command
rnr- requires
- nothing else — a static binary
- license
MIT(upstream)- upstream
- github.com/ismaelgv/rnr
- categories
- Text
- catalog
- generation 12, Ed25519-signed
Install and run it from your page
With the SDK, installApp resolves rnr in the signed index, fetches its content-addressed chunks from the CDN, verifies each one and writes the files into the VM. Details in Installing catalog apps.
javascript
import { createNano } from "@userland-run/nano-sdk";
const nano = await createNano({ image: { wasm: "/nano/console.wasm" }, ramMB: 512 });
await nano.installApp("rnr"); // signature-verified, cached in OPFS
const r = await nano.shExec("rnr --version");
console.log(r.stdout);Typical usage of the upstream command-line tool:
bash
rnr regex -f 'IMG_(\d+)' 'photo-$1' *.jpg
Caveats
- rnr only prints the planned renames unless you pass
-f. Applying renames (-f) or renaming several paths at once did not finish on NanoVM v0.2.1 in our tests, so the sample shows the dry run.
Related apps
- fd10.2.0Find files by name with a simple syntax, smart case and sensible defaults — an alternative to find.RISC-V VM1.4 MB
- sd1.0.0Find and replace text with familiar regex syntax — a simpler sed for substitutions.RISC-V VM956 kB
- busybox1.36.1Hundreds of standard Unix utilities (sh, ls, grep, sed, awk, tar…) in a single small binary.RISC-V VM780 kB