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
Comment:dialog based mass renaming
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:9db78a345e802fe10f482b1bde4ab646bf3da983
User & Date: mario 2012-01-09 04:18:02
Context
2012-01-09
04:19
wrapper to use PHP functions from commandline, needs function name symlinks onto it check-in: 428b5c30a3 user: mario tags: trunk
04:18
dialog based mass renaming check-in: 9db78a345e user: mario tags: trunk
04:15
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> check-in: 94410824fb 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