-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathchext.1
50 lines (50 loc) · 891 Bytes
/
chext.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
50
.TH chext 1 "13 April 2016" "version 0.1"
.SH NAME
.B chext
- change a file extension
.SH SYNOPSIS
.BI chext
.I source ... extension
.SH DESCRIPTION
The
.B chext
utility moves the file(s) named by the
.I source
operand to the new extension named by the
.I extension
operand.
.PP
It is an error for the
.I source
operand to lack an extension.
.SH OPTIONS
.TP 8
.B -i
Cause
.B chext
to write a prompt to standard error before moving a file that would
overwrite an existing file. If the response from the standard input begins
with the character `y' or `Y', the move is attempted.
.TP
.B -v
Cause
.B chext
to be verbose, showing the original and final filename.
.LP
.SH EXAMPLES
.nf
$ touch foo.bar
$ ls
foo.bar
$ chext foo.bar baz
$ ls
foo.baz
$ touch qux.baz
$ chext *.baz bar
$ ls
foo.bar qux.bar
.fi
.SH LICENSE
The MIT License
.SH AUTHORS
J. O'Brien Antognini (joe.antognini@gmail.com)