Skip to content

gald3r file

All CLI commands

Edit files without a shell escape layer: replace, write, apply, show.

gald3r file [flags]

gald3r file apply

Apply a batch of replace/write operations from a JSON spec, all-or-nothing.

gald3r file apply --spec FILE|- [flags]

Command flags include --apply, --binary, --eol, --json, --spec.

gald3r file replace

Exact substring replace, byte-for-byte, no shell escape layer, fails on 0 or >1 matches unless --all/--count says otherwise.

gald3r file replace PATH [flags]

Command flags include --all, --apply, --binary, --count, --decode, --eol, --json, --new, --new-file, --new-stdin, --old, --old-file, --old-stdin.

gald3r file show

Print a file with control characters made visible -- diagnose what is really on disk.

gald3r file show PATH [flags]

Command flags include --json, --lines.

gald3r file write

Create or overwrite a file with exact bytes -- no shell escape layer.

gald3r file write PATH [flags]

Command flags include --apply, --binary, --decode, --eol, --from-file, --json, --stdin.