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

⌈⌋ branch:  scripts + snippets


Check-in [9db78a345e]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1 Hash:9db78a345e802fe10f482b1bde4ab646bf3da983
Date: 2012-01-09 04:18:02
User: mario
Comment:dialog based mass renaming
Tags And Properties
  • branch=trunk inherited from [3733c93d1a]
  • sym-trunk inherited from [3733c93d1a]
Context
2012-01-09
04:19
[428b5c30a3] wrapper to use PHP functions from commandline, needs function name symlinks onto it (user: mario, tags: trunk)
04:18
[9db78a345e] dialog based mass renaming (user: mario, tags: trunk)
04:15
[94410824fb] work on php plugin standard files and extract version:\d+ field, while epm_set_version can update epm packaging .list files Both tools have been superseded by <a href=https://fossil.include-once.org/versionnum/>versionnum/</a> (user: mario, tags: trunk)
Changes

Added ren.



























>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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