Recent Posts

Bashing out Spaces

1 minute read

There’s no need to use tr, sed and awk to trim whitespace from variables in Bash. Here’s how.

Bashing out basename and dirname

2 minute read

To find out the file and path components of a full filename, code similar to the following is often used: fullname="/path/to/filename" filename=$(basename "$...