Tag: Bash

Bash Tip - Beware of spaces

Everyone knows that filenames and variables can contain spaces, but when it comes to writing a shell script most of the shell developers seem eager to forget that fact and write scripts that do not safely handle filenames containing spaces. I can't count the numbers of time I saw people …


Bash Tip - The importance of testing that variables are defined.

When writing code it's important to make sure all the variables are defined. Using an undefined variable can lead to all sorts of problems. Your program may fail randomly or run commands with unexpected results. Almost all languages raise an error when the program tries to access a variable that …


Network programming with bash

When executing a command on a /dev/tcp/$host/$port pseudo-device, Bash opens a TCP connection to the associated socket.


Page 1 / 1