POSIX compatible derg utilities.
Go to file
Olivier Poirier 11c31e1860 Merge branch 'kohrokho-unixdog' of https://git.unix.dog/kohrokho/posix-dergutils into kohrokho-unixdog 2023-12-07 19:00:09 -06:00
primitives Merge branch 'kohrokho-unixdog' of https://git.unix.dog/kohrokho/posix-dergutils into kohrokho-unixdog 2023-12-07 19:00:09 -06:00
.gitignore Added vim swapfiles to gitignore. Made usage work. Renamed lots of scripts to a standard format and added a whole bunch of new ones. Need to switch from status codes to signals soon(tm), laid the framework for that. 2023-09-28 22:20:23 -07:00
Makefile Modified the directory structure. Added makefile, install and uninstall scripts. Removed some files that need to be refactored. 2023-09-25 21:26:37 -07:00
README.md Adjusted the readme some more. 2023-09-28 23:46:17 -07:00
install Added vim swapfiles to gitignore. Made usage work. Renamed lots of scripts to a standard format and added a whole bunch of new ones. Need to switch from status codes to signals soon(tm), laid the framework for that. 2023-09-28 22:20:23 -07:00
testenv Added scripts to modify PATH. Useful for testing the scripts without copying them anywhere. 2023-12-05 14:50:37 -06:00
uninstall Added vim swapfiles to gitignore. Made usage work. Renamed lots of scripts to a standard format and added a whole bunch of new ones. Need to switch from status codes to signals soon(tm), laid the framework for that. 2023-09-28 22:20:23 -07:00

README.md

Commands For Dergs

These POSIX shell scripts are meant to be UNIXy - they do one thing each and do it well, so you can sling them together and perform complex tasks.

Need to check if something is a number? isnum.

Need to take the last argument and pipe it, executing the rest as a command? lastpipedo.

Need the former, but for the first argument? firstpipedo.

How about the first n arguments? firstnthpipedo.

You get the idea!

What do I need?

There will be descriptions of these functions embedded on their head, including a requirements list for the applications they call.

Later, I'll make a script that can tell if one of these is missing and let you know. I'd also like to do a --reqs argument that will print these along with an indicator of installation status and a return code.


Why POSIX?

My other project isn't ready yet, and it's good to make POSIX environments friendlier. These would only fail when an external program is not there. Maybe I could even make it graceful