awk的模块化方案,在这公司苦逼很久以后想到的
摘要:
test.sh#!/bin/shecho demos | igawk -f test.awktest.awk#!/usr/bin/igawk -f@include common.awk{ filename = $0 makeArray(filename,array) printArray(array) makeInsertSQL("aaa",array,"test.sql")}common.awkfunction sayHello(s,_ARGVEND_){ print "hello "s}function makeArray(fil 阅读全文
posted @ 2013-05-14 20:15 codestyle 阅读(468) 评论(6) 推荐(0)
浙公网安备 33010602011771号