Translate

Archives

Inline Comments in Multiline PowerShell Commands and Scripts

Questions about the use of line continuation (\) together with inline comments (# comment) in shell scripts is a somewhat frequent topic on Unix and Linux forums. Unfortunately, there is no simple elegant solutions available for any of the standard shells such as bash, ksh93, zsh or the POSIX shell. Consider the following simple shell script: #!/bin/ksh93 find ./ \ -type f \ -name “*.pyc” Suppose you want to add comments describing each argument to the find utility. You might (I did the first time I came across this issue!) naively expect the following to work: #!/bin/ksh93 find ./ \

Converting Integer to Different Base in KSH93

This post demonstrates how to convert an integer to a different base using ksh93 builtin functionality.

UEFI Utility ShowBGRT Updated to Include Display Image Option and More

This post describes the changes and enhancements which I recently made to my ShowBGRT utility which is a simple tool to extract information and the boot logo image using the ACPI Boot Graphics Resource Table.

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.