Collection of mostly command line tools / PHP scripts. Somewhat out of date.

⌈⌋ ⎇ branch:  scripts + snippets


Artifact [e15306df07]

Artifact e15306df07ab2bbb85fa7f0f798f1f8381157a13:

  • Executable file ren — part of check-in [9db78a345e] at 2012-01-09 04:18:02 on branch trunk — dialog based mass renaming (user: mario size: 263)

#!/bin/sh
if [ -z "$1" ]
then
   echo usage:  ren '<*files*>'
else
   for FILENAME in "$@" ;
   do
      REN="$(dialog --stdout --inputbox "rename $FILENAME to:" 7 60 "$FILENAME")"
      if [ ! -z "$REN" ] ; then
         mv "$FILENAME" "$REN"
      fi
   done
fi