File README changed (mode: 100644) (index cc37ebb..022773f) |
1 |
|
this is a collection of programs that I wrote for fun. |
|
|
1 |
|
his is a collection of programs that I wrote for fun. |
2 |
2 |
Some, like spng, are programs that I thought were |
Some, like spng, are programs that I thought were |
3 |
3 |
unnecessarily large (referring to "sponge" from |
unnecessarily large (referring to "sponge" from |
4 |
4 |
the moreutils project, its like 300 lines, where |
the moreutils project, its like 300 lines, where |
|
... |
... |
mine is only 18.) I am even writing my own original |
6 |
6 |
software, like clp. Its like a clipboard/clipboard |
software, like clp. Its like a clipboard/clipboard |
7 |
7 |
manager for standard input and output. |
manager for standard input and output. |
8 |
8 |
|
|
9 |
|
|
|
10 |
9 |
clp: |
clp: |
11 |
10 |
Insert by piping in standard input ex. |
Insert by piping in standard input ex. |
12 |
|
echo lmao | clb i |
|
|
11 |
|
echo lmao | clp i |
13 |
12 |
that uses its "i" option. This will copy the stdin |
that uses its "i" option. This will copy the stdin |
14 |
13 |
into your ~/.clipboard file as an entry. |
into your ~/.clipboard file as an entry. |
15 |
14 |
the -f option will set your clipboard file to be |
the -f option will set your clipboard file to be |
|
... |
... |
and clp p will print the latest entry. |
21 |
20 |
the same works with the "d" option, except |
the same works with the "d" option, except |
22 |
21 |
it deletes the entries. |
it deletes the entries. |
23 |
22 |
clp c just counts the entries and ends the program. |
clp c just counts the entries and ends the program. |
|
23 |
|
i: insert |
|
24 |
|
p: print |
|
25 |
|
d: delete |
|
26 |
|
c: count |
|
27 |
|
ex. clp -f clipfile i < echo.c # outputs echo.c into clipfile since -f was specified |
|
28 |
|
clp -f clipfile ,p # outputs everything in clipfile. |
|
29 |
|
|
|
30 |
|
sc: |
|
31 |
|
takes input files/standard output and changes their |
|
32 |
|
cases based on the option. Options: -l, -u, -s. |
|
33 |
|
-l: lower case |
|
34 |
|
-u: upper case |
|
35 |
|
-s: swaps cases |
|
36 |
|
ex. sc -l filename |
24 |
37 |
|
|
25 |
38 |
spng: |
spng: |
26 |
39 |
allows you to pipe things from a file back into that file |
allows you to pipe things from a file back into that file |