Categories
bash scripting

Bash Conditionals with RegEx and other Comparisons

There are many times when using regular expressions for comparisons is the best option. In this case a bash script being written for a cron job required date format comparison. Using a regular expression makes it easy and easily adjustable if needed in the future to handle other formats. The quick comparison of a variable […]