en‎ > ‎home‎ > ‎

mcmd Changelog

Changes from nysol1.0 to 1.1

  • Added new column function with -A option
    • mvjoin,mvsort,mvcommon,mvreplace,mvdelim,mvuniq
    • when -A option is specified, results can be added as new field name defined by added colon to the field name(s) specified at the f= parameter. 


Changes in specifications from mcmd 1.0-664

  • Line number and field number is standardized to an integer value starting from 0
    • mnumber, mnewnumber : In the last version, if S= is not specified, the serial number will start from 1. The starting number is changed to 0 in this version. 
      • Compatibility:The serial number can be customized by defining the parameter as S=1 for mnumber, mnewnumber.
    • mbest:R= parameter to define the range is phased out (the parameter still exists in the current function), and is replaced by from=,to=,size=. 
      • Compatibility:R=n_m parameter is changed to from=n-1 to=m-1.
      • Compatibility:Specify multiple ranges at R=→use mbest repeatedly followed by mcat. 
    • mcal:line() function generates serial number starting from 1, the starting number now starts from 0. 
      • Compatibility:The starting number can be reverted as in original by specifying line()+1.
  • mcat
    • Returns ERROR if file does not exist.
      • Compatibility: Speify -skip_fnf to enable processing to continue even if the file do not exist. However, if all specified files do not exist, ERROR message will be returned.  
  • mrand, mnewrand
    • When min=,max= is not specified, real random numbers from 0.0 to1.0 is generated. In the previous version random integers from 0 to INT_MAX are generated. 
      • Compatibility: added -int option to generate random integers. 
    • When min=, max=is not specified, an error will return if -int is not specified.
      • Compatibility: added -int option for generation of random integers. 
  • mnrjoinmnrcommon
    • v= parameter is phased out, with updates on r= on specified fields for range comparison.
      • Compatibility:v= parameter is changed to r=.
  • mchgstr, mselstr, msed
    • -w is phased out, with updates on -W for specification of wide characters. 
      • Compatibility:-w option is changed to -W.
  • mcal
    • rand(minimum value,number of types,random seed) => Random integers: randi(minimum value,maximum value,random seed) and random real number is divided by rand(random seed).
      • rand(a,b,c) returns error and is changed to randi(a,a+b-1,c).
    • Phased out regexs function.
      • Compatibility:updated regexm function. 
    • Updated the return value of regexpos function (starting position) => When the starting character string is matched, return 1, otherwise return 0. 
      • Compatibility:updated from regexpos(a, b) to regexpos(a, b)-1.
    • Updated the specification of starting position for mid function => the starting position of character string is updated from 1 to 0. 
      • Compatibility:updated from mid(a, b, c) to mid(a, b-1, c).
    • Changed function name of fldcnt() => fldsize()
      • Compatibility:updated from fldcnt() to fldsize().
    • distu(v1,v2,..) function=> dist("euclid",v1,v2,..)
      • Compatibility:updated from distu(v1,v2,..) todist("euclid",v1,v2,..).
    • distm(v1,v2,..) function => distm("cityblock",v1,v2,..)
      • Compatibility:updated from distm(v1,v2,..) to dist("cityblock",v1,v2,..).
    • disth(v1,v2,..) function => updated character string value type of dist("hamming",v1,v2,..) .
      • Compatibility:updated from disth(${v1},${v2},..) to dist("hamming",$s{v1},$s{v2},..).
    • Changed function name of isinor(S,S,...)  -> matchs(S,S,...)
      • Compatibility:updated from isinor($s{v1},$s{v2},..) to matchs($s{v1},$s{v2},..).
    • Changed function name of isinand(S,S,...)  -> matchas(S,S,...)
      • Compatibility:updated from isinand($s{v1},$s{v2},..) to matchas($s{v1},$s{v2},..).
Comments