-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbulkrename.1
49 lines (49 loc) · 983 Bytes
/
bulkrename.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
.Dd September 23, 2022
.Dt BULKRENAME 1
.Os
.Sh NAME
.Nm bulkrename
.Nd edit filenames interactively within editor
.Sh SYNOPSIS
.Nm
.Op Ar file ...
.Sh DESCRIPTION
.Nm
receives filenames from its arguments (one per argument) or from stdin
(one per line) and opens an editor to edit them;
then, it renames each file to the corresponding edited one.
.Pp
If there are no arguments,
.Nm
operates on stdin,
reading one filename per line.
If there are arguments, each argument is read as a filename.
.Pp
The environment variables
.Ev EDITOR
and
.Ev VISUAL
are checked, in this order, for an editor program.
If both are unset, use
.Xr vi 1
by default.
.Sh ENVIRONMENT
The following environment variables affect the execution of
.Nm Ns :
.Bl -tag -width Ds
.It Ev EDITOR
The editor to be used.
.It Ev VISUAL
The editor to be used if
.Ev EDITOR
is not set.
.El
.Sh EXAMPLES
Open editor to rename all
.Pa "*.jpg"
files:
.Bd -literal -offset indent
$ bulkrename *.jpg
.ED
.Sh SEE ALSO
.Xr vi 1