全部博文(168)
发布时间:2015-01-15 12:30:07
想用tcl重写之前的一些shell工具,但是发现tcllib里面cmdline包的getoptions只支持tcl风格的选项 http://wuhrr.wordpress.com/2009/09/13/parse-command-line-in-a-tcl-script/#comment-4412package require cmdline # Show argv before processingputs "Before, ar.........【阅读全文】
发布时间:2014-11-07 15:10:37
enable_coredump() { ulimit -SHc unlimited sed -i 's/${DAEMON_COREFILE_LIMIT:-0}/unlimited/' /etc/init.d/function echo 1 >/proc/sys/kernel/core_uses_pid .........【阅读全文】
发布时间:2013-12-31 19:24:26
点击(此处)折叠或打开#! /bin/sh#caipiao () { awk -v type=$1 ' function sort(ARRAY, ELEMENTS, temp, i, j) { for (i = 2; i <= ELEMENTS; ++.........【阅读全文】
发布时间:2013-10-01 09:46:30
http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in......【阅读全文】
发布时间:2013-09-27 16:06:51
点击(此处)折叠或打开#1、strip_c_comment1.awk 正则方法BEGIN { ORS = "" }{ code = code $0 "\n" }END { while ( length(code) ) &nbs.........【阅读全文】