Ticket #29179: patch-scripts.diff

File patch-scripts.diff, 872 bytes (added by humem (humem), 13 years ago)
  • ctext2class

    old new  
    1 #!/usr/local/bin/ruby
     1#!/usr/bin/env ruby
    22delimiter = "+"
    33print_count = false
    44
  • text2class

    old new  
    1 #!/usr/local/bin/ruby
     1#!/usr/bin/env ruby
    22while gets
    33  s = chop.split
    44  c = []
  • text2idtext

    old new  
    1 #!/usr/local/bin/ruby
     1#!/usr/bin/env ruby
    22
    33def usage
    44  STDERR.print "text2idtext [-verbose] -vocab .vocab [.text]\n"
  • reverseword

    old new  
    1 #!/bin/awk -f
     1#!/usr/bin/env awk -f
    22{
    33        for (i=NF; i>1;i--) {
    44                printf "%s ",$i