-
Notifications
You must be signed in to change notification settings - Fork 0
/
wk.1
48 lines (48 loc) · 1.32 KB
/
wk.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
.\" Man page for wk.
.\" Adapted from the example at https://www.systutorials.com/docs/linux/man/7-man-pages/
.TH WK 1 "January 2024" "1.0.0" "wk man page"
.SH NAME
wk \- Count bytes, lines, or words in a file or from standard input (wc clone written in Kotlin)
.SH SYNOPSIS
.B wk
.RI [ options ]
.I [ filename ]
.SH DESCRIPTION
.B wk
counts the number of bytes, lines, or words in a file and writes the result to the standard output.
.SH OPTIONS
.TP
.B \-c
Count the number of bytes in the input file.
.TP
.B \-l
Count the number of lines in the input file.
.TP
.B \-m
Count the number of characters in the input file. If the current locale does not support multibyte characters, this is equivalent to the \-c option. This cancels out any prior usage of the \-c option.
.TP
.B \-w
Count the number of words in the input file.
.SH ARGUMENTS
.TP
.I filename
The path to the input file. If not specified, read from standard input.
.SH EXAMPLES
Count the number of lines in a file:
.PP
.B wk -l myfile.txt
.PP
Count the number of bytes from standard input:
.PP
.B echo Hello, World! | wk -c
.SH SEE ALSO
.BR wc (1)
.SH AUTHOR
Vladas Maier <vladas.mr@gmail.com>.
.SH COPYRIGHT
Copyright © 2024 Vladas Maier.
.PP
This is free software; you are free to change and redistribute it.
.PP
There is NO WARRANTY, to the extent permitted by law.
.\" End of man page