Binaries and scripts

Binaries

date

print or set the system date and time * get dates for e.g. file names : date -Iminutes

maim

maim (make image) takes screenshots of your desktop. It has options to take only a region, and relies on another program called slop to query the user for regions using the graphical interface.

xclip

command line interface to X selections (clipboard)

tac

reverse input line-wise

rev

reverse input character-wise

didder

didder is an extensive, fast, and accurate command-line image dithering tool. github

Scripts

Find and replace using sed across all occurrances in a folder

find . -type f -exec sed -i.txt "s/foo/bar/g" {} \;

Rename file extension

!#/bin/bash
for f in *.JPG;
  do mv -- "$f" "${f%.JPG}.jpg";
done

Get paste-able filename list (used for {log} entries)

ls -1 2021-08-*

Migrating from .mmx to .mx

Images

find . -type f -name "*.md" -exec gsed --regexp-extended -i.bak "s/\!!![](](([^]((\S*)()]*))?\)/!![)(\3)(\1)/g" {} \;

Links

find . -type f -name "*.md" -exec gsed --regexp-extended -i.bak "s/\{(\S*), (!!![](]()(^\})*)\}/[\2)(\1)/g" {} \;

Compiled 2023-1-27