Skip to content

Commit

Permalink
Merge pull request wader#43 from xyproto/fix
Browse files Browse the repository at this point in the history
Reword + add "Brittle league"
  • Loading branch information
wader authored Jun 11, 2023
2 parents 237c1fb + 27eb810 commit 638f346
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Get the file to stdout as intact as possible.

### Pure league

- No shell features involved
- Only output on stdout
- No shell features are involved.
- Only outputs to `stdout`.


```sh
Expand Down Expand Up @@ -50,6 +50,8 @@ emacs -Q --batch --eval '(princ (with-temp-buffer (insert-file-contents "file.tx

### Pipe league

- Needs pipes to work.

```sh
tee < file.txt
tr a a < file.txt
Expand All @@ -59,9 +61,19 @@ echo ',p' | ed -s file.txt
xxd -p file.txt | xxd -p -r
```

### Brittle league

- May not handle every character.
- May not handle every file length.

```sh
sed '/*/p' file.txt
gcc -E -P -xc file.txt
```

### Error league

- Same as pure but can have errors on stdout and stderr
- Same as "Pure league", but errors on `stdout` and/or `stderr` are acceptable.

```sh
dd if=file.txt
Expand All @@ -70,4 +82,4 @@ gcc -xc file.txt

### Junk league

- Same as error but most bytes from the file
- Same as "Error league", but most of the output bytes are from the file.

0 comments on commit 638f346

Please sign in to comment.