Skip to content

Commit

Permalink
Sort lines, reword and fix wader#23 and wader#25
Browse files Browse the repository at this point in the history
  • Loading branch information
xyproto committed Jun 6, 2023
1 parent c9f9dcb commit 11785c5
Showing 1 changed file with 35 additions and 30 deletions.
65 changes: 35 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,59 +2,64 @@

### Pure league

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

```sh
cat file.txt
awk 1 file.txt
paste file.txt
pv -q file.txt
grep '' file.txt
sort -m file.txt
sed -n p file.txt
cut -b 1- file.txt
jq -rRs . file.txt
perl -pe1 file.txt
sed '/*/p' file.txt
tail -n +1 file.txt
head -n -0 file.txt (GNU head)
gcc -E -P -xc file.txt
bat --color=never --style=plain file.txt
cat file.txt
comm file.txt /dev/null (BSD comm)
cp file.txt /dev/stdout
scp file.txt /dev/stdout
w3m -dump_source file.txt
curl file:///proc/self/cwd/file.txt
cut -b 1- file.txt
dd status=none if=file.txt (GNU dd)
diff --line-format=%L /dev/null file.txt
emacs -Q --batch --eval '(princ (with-temp-buffer (insert-file-contents "file.txt") (buffer-string)))'
ffmpeg -v quiet -f data -i file.txt -map 0:0 -c text -f data -
git -P grep --no-index -h ^ file.txt
grep '' file.txt
head -n -0 file.txt (GNU head)
hexdump -ve '"%c"' file.txt
jq -rRs . file.txt
openssl enc -none -in file.txt
curl file:///proc/self/cwd/file.txt
git -P grep --no-index -h ^ file.txt
bat --color=never --style=plain file.txt
diff --line-format=%L /dev/null file.txt
paste file.txt
perl -pe1 file.txt
pv -q file.txt
python -c 'print(open("file.txt").read()[:-1])'
scp file.txt /dev/stdout
sed -n p file.txt
sort -m file.txt
tail -n +1 file.txt
vim -es --clean '+w! /dev/stdout' '+q!' file.txt
ffmpeg -v quiet -f data -i file.txt -map 0:0 -c text -f data -
emacs -Q --batch --eval '(princ (with-temp-buffer (insert-file-contents "file.txt") (buffer-string)))'
w3m -dump_source file.txt
```

### Pipe league

- Needs `<` and/or `|` piping to work.

```sh
echo ',p' | ed -s file.txt
rev file.txt | rev
tee < file.txt
tr a a < file.txt
rev file.txt | rev
echo ',p' | ed -s file.txt
```

### Sensitive league

- Does not handle every character.

```sh
gcc -E -P -xc file.txt
sed '/*/p' 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
gcc -xc file.txt
```

### Junk league

- Same as error but most bytes from the file

0 comments on commit 11785c5

Please sign in to comment.