blob: 003dc2510ae36197ad98008c0e6dad2df397de0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# coreutils
Rewrite of some core utilities for educational purposes.
I try to follow the POSIX version of those commands for simplicity sake, e.g `man 1p ls`.
| Name | Description |
|------------|----------------------------------------------------------------- |
| `mkdir` | make directories |
| `basename` | strip directory and suffix from filenames |
| `rm` | remove files or directories |
| `seq` | print a sequence of numbers |
| `tee` | read from standard input and write to standard output and files |
| `shuf` | generate random permutations |
| `echo` | display a line of text |
| `yes` | output a string repeatedly until killed |
| `df` | report free disk space |
## Pending
| Name | Description |
|------------|----------------------------------------------------------------- |
| `cut` | remove sections from each line of files |
| `uniq` | report or omit repeated lines |
| `tr` | translate or delete characters |
| `chown` | change file owner and group |
| `xargs` | construct argument lists and invoke utility |
| `ps` | report process status |
## TODO
| Name | Description |
|------------|-----------------------------------------------------------------|
| `cp` | |
| `chmod` | |
| `ln` | |
| `mv` | |
| `touch` | |
| `cat` | |
| `tail` | |
| `test` | |
| `sort` | |
| `dirname` | |
| `date` | |
| `du` | |
| `expr` | |
|