The KornShell is an open source, POSIX-compatible shell language from AT&T; based upon the original Bourne shell.
3
votes
1answer
26 views
Shell binary search with sorted input
I have coded binary search in shell, just for practice.
Input
Input data is already sorted set of numbers streamed to the script. $1 is the sought number.
...
2
votes
3answers
372 views
Unix shell function for adding directories to PATH
Adding a directory to the PATH in Unix/Linux is a very common task. However, what if the directory is already in the path? My goal is to write a shell function ...
2
votes
1answer
67 views
3
votes
1answer
313 views
Parsing Oracle errors with a ksh function
Some time ago I wrote a small routine to run some quick n' dirty queries (and with that I mean it is not used for large queries) against an Oracle DB, but also wanted to do it a bit easier to parse ...