原创 Unix下的"uniq"命令

uniq -- 過濾文本中的重複行synopsisuniq [-c|-d|-u] [-f fields] [-s char] [input file[output file]]Descriptionuniq從一個輸入文件中讀入行,比較鄰接

原创 shell中的數組

用$varname[0]=value1 $varname[1]=value2 .... 來定義 用 $echo ${varname[0]} 方式來引用

原创 shell集錦

文件以“:”作爲分隔符,每行至少1個,最多不限。如何取出第一個“:”後的所有字符?          sed  's/[^:]*://'   file文件合併,可以使用命令paste          paste將把輸入文件的對應行

原创 awk

awk的三種調用方法:1. 命令方式awk [-F filed-seperator] 'awk-command' input-files[-F field-seperator]是可選項,awk通常默認的IF

原创 Linux/Unix tips

求變量的長度:                   STR=123                  LEN=`expr length $STR`                    或者                    LE

原创 bash內建參數

=========== PPID : 該bash的呼叫者process ID. PWD : 目前的工作目錄。 OLDPWD : 上一個工作目錄。 REPLY : 當read命令沒有參數時,直接設在REPLY上。

原创 Sun, Google Form Alliance

Speculation is mounting ahead of Tuesday's upcoming announcement of a new relationship between Sun Microsystems and Goo

原创 business English 16

441. We are satisfied with the terms of this contract for the most part, but we feel that your terms for payment are to

原创 Snetences from internet

The collection of Linux command-line programs is no exception to this generalization.

原创 Shell變量名使用的特殊字符

                                $#   傳送給命令Shell的參數個數                 $-   在Shell啓動或使用set命令時提供選項