2019-05-19 – Panasonic Lumix DMC-GX7
VLI, Port Vila, Vanuatu
🎵 (youtube) Stig «Puumaa mä metsästän»
I’ve known about aliases and I’ve been learning some simple shell scripting but now I’ve added in some basic knowledge of shell functions – nothing too convoluted yet, more a matter of being able to insert an argument in the middle of a command (aliases end up just tacking all the arguments on to the end) – so far, the functions haven’t been strictly necessary, but, like all things in shell scripting, they save a lot of repetitive typing and trying to remember the precise arguments from last time
magdither () { filename="${1##*/}" filebase="${filename%.*}" magick "$filename" -resize 50% -dither FloydSteinberg -remap netscape: "$filebase-dither.png" }
➡️ the day after
⬅️ the day before
⬅️ the month before
⬅️ the season before
🔗 rss