Full syntax:

Usage: wc2fn.py options 'command [cmd-options [$i[,$j] ]] $m $n' 'pattern1' 'pattern2'
    options:
      -v  -- verbose
      -t  -- test; print command to stdout instead of executing it
      -d  -- debug (automatically sets -t)
    command, cmd-options  -- see documentation of shell command or program
    $i,$j,$m,$n  -- any combination of $1, $2 ; any sequence or repetition
      $1 -- file matching pattern1 (source)
      $2 -- filename generated from pattern2 (target)
    single quote 'command cmd-options $i $j' 'pattern1', 'pattern2'

Replacements for pattern2 are done on a positional basis. (positions of wildcard/static text)
Wildcards and special chars in pattern  // not supported:
source (pattern1): * ? [char-range] [!char] ./ ../
target (pattern2): * ?     (string)  |      ./ ../
   (string) replaces corresponding wildcard match in source with string, including empty string
   | replaces corresponding static string in source with an empty string

Examples, optionally implemented via sym-links  --  command := action
wcll  'pat1' 'pat2'  =>  wc2fn 'ls -l $1 $2 ; echo '' ' 'pat1' 'pat2'
wccp  'pat1' 'pat2'  =>  wc2fn 'cp -p $1 $2' 'pat1' 'pat2'
wcmv  'pat1' 'pat2'  =>  wc2fn 'mv    $1 $2' 'pat1' 'pat2'
wcgtm 'pat1' 'pat2'  =>  wc2fn 'touch -r $1 $2' 'pat1' 'pat2'
wcstm 'pat1' 'pat2'  =>  wc2fn 'touch -r $2 $1' 'pat1' 'pat2'

Prev -- Home -- Next            1 2 3 4 5 6 7 8 9 10