@ 260802.2

200426.5 · 481b64a667e8d9aca522a0455a00f32dac1f4977

initial commit of ~/bin

This brings over everything that was in my bin-only repository.

I removed scripts that were unused or were no longer understood. I also moved any work-specific scripts to a separate (private) repository.

reading declarations

Changes to bin/clean-media-folders. All files

bin/clean-media-folders

new file mode 100755@@ -0,0 +1,13 @@+#!/bin/bash++for d; do+  if ! [ -d "$d" ]; then+    echo "$d is not a directory. skipping." >&2+    continue+  fi+  mv "$d"/*.{mkv,avi,mp4} ./ 2>/dev/null+  rm "$d"/*.{txt,nfo,jpg,exe} 2>/dev/null+  rm -rf "$d"/Sample 2>/dev/null+  rm -rf "$d"/Screens 2>/dev/null+  rmdir "$d"+done