Skip to content

Commit e9856d5

Browse files
committed
Add man page
1 parent 7407429 commit e9856d5

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ strings-cp932.c: _cp932tab.c
1212
_cp932tab.c: cp932tab.awk CP932.TXT
1313
awk -f cp932tab.awk -F' ' CP932.TXT > $@
1414

15+
$(TARG).1: $(TARG).1.scd
16+
scdoc < $< > $@ || rm $@
17+
1518
clean:
1619
rm -f $(TARG) $(OFILES) _cp932tab.c

strings-cp932.1.scd

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
STRINGS-CP932(1)
2+
3+
# NAME
4+
5+
strings-cp932 - extract printable windows-31j/cp932 strings
6+
7+
# SYNOPSIS
8+
9+
*strings-cp932* [-t _format_] [_file_...]
10+
11+
# DESCRIPTION
12+
13+
_Strings-cp932_ finds and prints strings containing printable
14+
Windows-31J-encoded characters in a file, default standard input. Printable
15+
characters are taken to be ASCII characters from blank through tilde
16+
(hexadecimal 20 through 7E), inclusive, and all other characters defined
17+
in the Windows-31J character set. If _-t_ is passed, _strings-cp932_ prepends
18+
file offsets to found strings. The _format_ argument passed to _-t_ can be
19+
_d_ for decimal offsets, _x_ for hexadecimal offsets or _o_ for octal offsets.
20+
21+
# BUGS
22+
23+
*-n* is not supported for now; even 1-character strings are printed. You can
24+
pipe the output of _strings-cp932_ to _awk 'length($0)>n'_ (or _awk
25+
'length($0)-length($1)-1>n'_ if you're using *-t*) where _n_ is the desired
26+
minimum length if you want to filter out shorter strings.
27+
28+
# SEE ALSO
29+
30+
_https://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP932.TXT_ -
31+
Windows-31J mapping table used by strings-cp932

0 commit comments

Comments
 (0)