2008-12-02から1日間の記事一覧

昨晩の続き

ついでに、関数の検索用のshellscliptを作成 #!/bin/zsh echo `cat ${HREF_DATADIR}/comptable | grep $1`と書いておいて、hfuncsと名前をつけて、chmod u+x hfuncsで実行権限付加してPATHの通ったとこにおく。 これで、hfuncs Put と実行すると、System.IO,…

hrefの関数検索

ruby で書き直した。 #!/usr/bin/ruby require 'pp' raise "no argments." unless ARGV[0] open(ENV["HREF_DATADIR"]+"/comptable",'r') {|file| while line = file.gets print (line[line.index(',')+1...line.size].chop).chomp,"\n" if line.include? ARG…