2c9f0e8e7f
On Thu, Nov 26, 2009 at 03:42:21AM -0500, Mike Smith wrote: >[mike@laptop ~]$ dd if=/dev/urandom of=testfile bs=1 count=42 >42+0 records in >42+0 records out >42 bytes (42 B) copied, 0.000216179 s, 194 kB/s >[mike@laptop ~]$ hexdump -Cv testfile -s 42 >0000002a bb b0 ba 50 fe 70 f8 d9 f7 96 36 49 e9 74 c7 bd |...P.p....6I.t..| >0000003a 82 cb 19 64 a6 30 53 29 d2 fa 08 e3 f4 26 7f de |...d.0S).....&..| >0000004a bb 2c f2 df 7c a7 8c 6e 66 01 |.,..|..nf.| >00000054 >[mike@laptop ~]$ hexdump -Cv testfile -s 43 >0000002a I think I got where the bug is, it's an off-by-one problem... Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com> |
||
---|---|---|
.. | ||
.gitignore | ||
LICENSE.pg | ||
Makefile.am | ||
README.clear | ||
README.col | ||
README.pg | ||
col.1 | ||
col.c | ||
colcrt.1 | ||
colcrt.c | ||
colrm.1 | ||
colrm.c | ||
column.1 | ||
column.c | ||
conv.c | ||
display.c | ||
hexdump.1 | ||
hexdump.c | ||
hexdump.h | ||
hexsyntax.c | ||
line.1 | ||
line.c | ||
more.1 | ||
more.c | ||
od.1 | ||
odsyntax.c | ||
parse.c | ||
pg.1 | ||
pg.c | ||
rev.1 | ||
rev.c | ||
tailf.1 | ||
tailf.c | ||
ul.1 | ||
ul.c |
README.pg
README for the "pg" utility for Linux. The "pg" utility is the historic System V equivalent to BSD's "more". This is a free clone of it, and it is intended to conform to the SVID 4 as well as the SUSv2 specification of this command. Contrasting to the System V implementation, this one filters backspace formatting sequences while searching, so you can comfortably search in nroff output like manual pages. This code uses routines as defined by SUSv2, so a glibc version of 2.1 or higher is required on Linux. A curses implementation (like ncurses) must be present as well. If large files > 2GB are supported by the kernel and the C library, pg is able to handle them. Please send comments, bug-reports and especially bug-fixes to <g-r@bigfoot.de> . Gunnar Ritter Freiburg i. Br. Germany