• Stars
    star
    162
  • Rank 232,284 (Top 5 %)
  • Language
    C
  • Created over 12 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Implementations of cat(1) from various sources.
Here, placed side-by-side for comparison, are GNU's implementation of
cat, Plan 9's implementation, Busybox's implementation, and NetBSD's
implementation, Seventh Edition Unix (1979), Tenth Edition Unix (1989),
and 4.3BSD.

For good measure (and because I suppose I am now committed to collecting
cats) also included are Second Edition Unix (in assembly) and Inferno's
implementation (in Limbo) for good measure.

All cat.c files (renamed by prefixing the name of the source source)
are presented, unaltered and in their entirety.  Note how easy it is to
read and understand plan9-cat.c (it should take less than a couple of
minutes possibly even for coders that don't know C).  Other than that,
I think the files speak for themselves.

Keep in mind while reading that the cat utility's purpose is to
concatenate files.

Lastly, here are the line and character counts, sorted:
Lines  Chars  Filename
---------------------------
   35    531  plan9-cat.c
   48    955  busybox-cat.c
   48    986  inferno-cat.b
   63   1130  unix7-cat.c
   64    646  unix2-cat.s
   69   1241  unix10-cat.c
  222   3948  4.3bsd-cat.c
  316   6952  netbsd-cat.c
  782  22684  gnu-cat.c
 1647  39073  total

More Repositories

1

hoshi

First-class views for Ruby.
Ruby
43
star
2

watts

Resource-oriented, Rack-based, minimalist web framework.
Ruby
37
star
3

pez

Pez is a Forth dialect based on Atlast, with expanded capabilities and more portability.
Shell
31
star
4

live-console

LiveConsole, a Ruby gem for providing IRB over things other than stdio.
Ruby
29
star
5

awki

Awki is a lightweight wiki written in awk. These are my patches, original here: http://awkiawki.bogosoft.com/
Awk
24
star
6

euler

My Project Euler solutions. Disclaimer: they're not very good.
C
6
star
7

hexward

Deal with words instead of hex strings: an experimental C library.
C
5
star
8

roboto

The Roboto Programming Language -- Because Robots Should Be Doing the Work
Common Lisp
5
star
9

beekeeper

There is not much here at the moment. Ignore this repo.
Ruby
4
star
10

senga

Senga is the simplest graphing library with the worst name.
Ruby
4
star
11

lbf

The BF language, as a JIT compiler using Lightning
Shell
3
star
12

gitui

Small amount of Ruby that makes git a little more usable and darcs-y.
Ruby
3
star
13

nacreon

Dead-simple PaaS
Ruby
2
star
14

freenote-probe

A GPL'd client for distributed monitoring and metrics-gathering done with Eric Wong and Phil Lalone at my old employer Petta Tech. Cool project, but no longer maintained as far as I know.
C
2
star
15

pkgutils

Mirror of the crux.nu pkgutils. It looks like I patch them only once every 13 years.
C++
1
star
16

webvac

Ruby
1
star
17

bloat

Mirror of a minimal set of changes to BloatFE
Go
1
star
18

iredis

An Inferno OS client for Redis
Limbo
1
star
19

cha

The not-yet-formally-announced Cha. Code will appear here at some point.
1
star
20

terpene

Client (Ruby and command-line) for Nacreon
Ruby
1
star
21

cpi-ports

CRUX ports tree for DevTerm
Shell
1
star
22

rrss

Import from sl's mercurial repo, with some bug fixes.
Go
1
star