Have you been thinking about biting the bullet and learning Bash scripting? Or perhaps you're like me, and you're always looking for ways to improve. I have three tips that will improve every Bash ...
We often write quick bash scripts and judging by the comments, half of us use bash or a similar shell to pop out quick, useful scripts, and half of us think that’s an abomination, and you should only ...
It used to be one of the joys of writing embedded software was never having to deploy shell scripts. But now with platforms like the Raspberry Pi becoming very common, Linux shell scripts can be a big ...
The first software that I was actually paid to develop was a 2-page shell script that prompted the user for a dozen or so pieces of information, before launching a set of cooperating processes. Those ...
Using RH7.0, I've set up a bash script called 'dlist' which is just an 'ls' with the '-s and -h' switches appended. This gives you your normal ls output, with total size of the directory contents and ...
This post follows up on Part 1 by examining the many ways that you can test the value of variables – e.g., whether they equal particular strings like “yes” or “no”, if they have a numeric value, if ...
The nblock() function reports how many disk blocks the file uses. This calculation is based on the file's size as returned by stat(). The V7 block size was 512 bytes--the size of a physical disk ...