现在位置 >首页 > Tcl
0℃
2011年04月15日 Programme ⁄ 被围观 1,257+
This article is mainly to share with you how to count total lines of a file, we may know many ways, such as commands "wc", "grep", "nl", etc...And I will also introduce another way which by using tcl language, maybe it seems a bit complex(because it's not a one-sentence way), but it's also a very simple way. So first of all, I'd like to give out a conclusion, see following quote(pls feel free to give your comments if I missed anything): The methods of counting a file's to...
阅读全文

2℃
2011年04月09日 Programme ⁄ 被围观 1,759+
Shell nesting tcl
本例是个shell内嵌tcl的程序,嘿嘿,很简单。大家不用看内容,看用法即可。 说白了就是一个Here Documents(代码中的EOD块)……很简单……详见:http://tldp.org/LDP/abs/html/here-docs.html Code   ViewCopyPrint #!/bin/bash    # For downloading    # version 1.0: created on 2010-06-1 by Bob       #—————————————-    #tips: execute tcl in shell, by using EOD, chmod firstly, execute secondly    #—————————————-    # {{{down    function down()    {            local argv1=$1              cat ...
阅读全文

×
腾讯微博