This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Stop on all errros | |
set -e | |
# Enable extended globbing | |
shopt -s extglob | |
for dir in IMG_*/ | |
do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Input parameter validation | |
if [ "$#" -lt 2 ]; then | |
script_name=$(basename "$0") | |
echo "Usage: ${script_name} <directory-one> <directory-two>" | |
echo "Example: ${script_name} one/ two/" | |
exit -1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This Bash script gets all draft post URLs from a given Ghost installation and | |
# outputs them to a given file; see <https://www.how-hard-can-it.be/getting-all-draft-posts-ghost-blog/> | |
# for details | |
# Stop on all errors | |
set -e |