Skip one-click backup apps. This rsync script gives you full control over what gets saved and when, plus logs and a few hard-won lessons.
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 ...
Here are some basic skills to get started with bash, one of the best shells for preparing and using scripts on Linux. Scripting in Linux–putting commands into a file so you can run them as a group—is ...
Automatically scraping web pages is one of the many things you can automate with a headless Chrome. You can automate ...
I've recently written about using bash arrays and bash regular expressions, so here's a more useful example of using them to test IP addresses for validity. To belabor the obvious: IP addresses are 32 ...
I have the following bash script which tests 2 jpgs and displays a message if they are different.<br><br> diff -a --brief fullsize.jpg fullsize.jpg.bak<br> echo "diff=$?"<br> if [ $? -eq 1 ]; then<br> ...
FFmpeg was designed as a cross-platform solution for video and audio recording, conversion, and streaming. Its About page describes the command-line tool as “the leading multimedia framework, able to ...
It is easy to dismiss bash — the typical Linux shell program — as just a command prompt that allows scripting. Bash, however, is a full-blown programming language. I wouldn’t presume to tell you that ...