Translate

Archives

POSIX Way to Check User Input in Shell Scripts

This post discusses how to validate both localized and non-localized user input in the POSIX shell.

Bash Printf %T Option

This post discusses and demonstrates how to use the printf %T date functionality available in the Bash shell since version 4.2.

Printing Bash or Korn Shell Script Arguments

This post discusses various issues, workarounds and solutions to printing details of arguments (AKA positional parameters) passed to shell scripts via the command line upon invocation of the shell script.

RHCSA Preparation - Script to Configure a Simple OpenLDAP Server

If you are preparing for the RHCSA exam, this post should be of interest to you. I provide a Bash script which will fully configure a simple OpenLDAP directory server which you can then use to test that your OpenLDAP client setup is correct.

Bash-like Customizable Prompt in Korn Shell

Bash has built-in support for extensive PS1 prompt customization and as a result many people customize their shell prompts. There is no equivalent built-in support for PS1 customization in ksh93 but such support can easily be added using discipline functions.