/README (d98741b40437761e17e1fa301e70952d8ff98387) (2429 bytes) (mode 100644) (type blob)
_ _ _ _
___| |_ _| |_(_) |___
/ __| | | | | __| | / __|
| (__| | |_| | |_| | \__ \
\___|_|\__,_|\__|_|_|___/
This is a collection of programs that I wrote for fun.
Some, like spng, are programs that I thought were
unnecessarily large (referring to "sponge" from
the moreutils project, its like 300 lines, where
mine is only 18.) I am even writing my own original
software like clp. Its like a clipboard/clipboard
manager for standard input and output.
clp:
Insert by piping in standard input ex.
echo test | clp i
that uses its "i" option. This will copy the stdin
into your ~/.clipboard file as an entry.
the -f option will set your clipboard file to be
whatever you want for that command: echo test | clip -f altclipboard i
the following commands use ed-like addressing.
clp ,p will print (paste) your entire clipboard,
clp 1,2p will print the earliest 2 entries,
and clp p will print the latest entry.
the same works with the "d" option, which deletes.
clp c just counts the entries and ends the program.
i: insert
p: print
d: delete
c: count
ex. clp -f clipfile i < echo.c # outputs echo.c into clipfile since -f was specified
clp -f clipfile ,p # outputs everything in clipfile.
sc:
takes input files/standard output and changes their
cases based on the option. Options: -l, -u, -s.
-l: lower case
-u: upper case
-s: swaps cases
ex. sc -l filename
spng:
allows you to pipe things from a file back into that file
in the same pipe line.
ex. gofmt file.go | spng file.go
c:
makes working with c/c++ a bit easier. clang is used by default,
compiler can be changed with the -c switch.
linker options are handled "automatically" by replacing headers with linker options,
so go into the script and add whatever linker options correspond with the header file.
-c example: c -c g++ mk "file"
mk: builds a single file (and brings other files defined in "//cfiles"
along with it.
build: compiles an entire directory into a single binary with the name of the directory built.
clean: removes the binary named after the directory.
To compile, type "./INSTALL". I do not recommend replacing
the versions already in your /usr/bin or /bin,
for any issues and changes you would like to see,
email me at sl@airmail.cc
Copyright 2020 Matthew Graham <sl@airmail.cc>
These programs are under the GPLv3 or any later version.
A copy of the GPL is available in the COPYING file.
Mode |
Type |
Size |
Ref |
File |
100644 |
blob |
35149 |
f288702d2fa16d3cdf0035b15a9fcbc552cd88e7 |
COPYING |
100755 |
blob |
645 |
b9f5cace83fbbf9f9fc4be6ed424ebfe48db5502 |
INSTALL |
100644 |
blob |
2429 |
d98741b40437761e17e1fa301e70952d8ff98387 |
README |
100755 |
blob |
2482 |
3aadd29b59523d06471eacdae3f54dc82b90b9fe |
c |
100644 |
blob |
4161 |
d3c21fdd338bf33819184988562e3961f7883484 |
clp.c |
100755 |
blob |
1743 |
15d2d1cd7b083c7d4120e7902d9cba9616afe151 |
comp |
100644 |
blob |
807 |
59c452396f94f50dbe567bc19530fd386a52b652 |
echo.c |
100644 |
blob |
807 |
35eac8cabc2dacefe6167f615177cc86c0ea0399 |
exho.c |
100755 |
blob |
105 |
81a9e921c58a4a0deb918f66fa236a710bf884ae |
ins |
100644 |
blob |
979 |
89b230aabe515c66e967be21a4d9dff3ac5248da |
nl.l |
100644 |
blob |
1932 |
d59401d46002608d4563dd4afdac5ff394ed8df4 |
sc.c |
100644 |
blob |
1127 |
c105483de17bc09fe24e3b0fecfbce024fa380b0 |
spng.c |
100644 |
blob |
1178 |
1433a0105fd7a07e7ede04214e26552241f36b64 |
tee.c |
100644 |
blob |
2099 |
f3b9072d9d355ecd3400a039b870593cc771a084 |
wc.c |
100644 |
blob |
796 |
7359238b347bc985adc97e744cde0f8aa2ee6fbc |
yes.c |
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/spicylord/clutils
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/spicylord/clutils
Clone this repository using git:
git clone git://git.rocketgit.com/user/spicylord/clutils
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main