Sed & Awk, 2/e (Paperback)
暫譯: Sed 與 Awk, 第二版 (平裝本)
Dale Dougherty, Arnold Robbins
- 出版商: O'Reilly
- 出版日期: 1997-04-08
- 定價: $1,840
- 售價: 8.8 折 $1,619
- 語言: 英文
- 頁數: 434
- 裝訂: Paperback
- ISBN: 1565922255
- ISBN-13: 9781565922259
-
相關分類:
Command Line、程式語言
立即出貨 (庫存 < 3)
買這商品的人也買了...
-
$1,200$1,176 -
$680$537 -
$2,660$2,527 -
$650$514 -
$120$95 -
$399CCNA Self-Study: CCNA Basics (CCNAB) (Hardcover)
-
$420$328 -
$590$466 -
$690$538 -
$650$618 -
$750$638 -
$560$476 -
$550$468 -
$390$304 -
$490$387 -
$400$316 -
$650$514 -
$480$379 -
$750$593 -
$1,176Computer Organization and Design: The Hardware/Software Interface, 3/e(IE) (美國版ISBN:1558606041)
-
$880$695 -
$990$891 -
$680$537 -
$580$458 -
$780$616
商品描述
sed & awk describes two text processing programs that are mainstays of the UNIX programmer's toolbox.
sed is a "stream editor" for editing streams of text that might be too large to edit as a single file, or that might be generated on the fly as part of a larger data processing step. The most common operation done with sed is substitution, replacing one block of text with another.
awk is a complete programming language. Unlike many conventional languages, awk is "data driven" -- you specify what kind of data you are interested in and the operations to be performed when that data is found. awk does many things for you, including automatically opening and closing data files, reading records, breaking the records up into fields, and counting the records. While awk provides the features of most conventional programming languages, it also includes some unconventional features, such as extended regular expression matching and associative arrays. sed & awk describes both programs in detail and includes a chapter of example sed and awk scripts.
This edition covers features of sed and awk that are mandated by the POSIX standard. This most notably affects awk, where POSIX standardized a new variable, CONVFMT, and new functions, toupper() and tolower(). The CONVFMT variable specifies the conversion format to use when converting numbers to strings (awk used to use OFMT for this purpose). The toupper() and tolower() functions each take a (presumably mixed case) string argument and return a new version of the string with all letters translated to the corresponding case.
In addition, this edition covers GNU sed, newly available since the first edition. It also updates the first edition coverage of Bell Labs nawk and GNU awk (gawk), covers mawk, an additional freely available implementation of awk, and briefly discusses three commercial versions of awk, MKS awk, Thompson Automation awk (tawk), and Videosoft (VSAwk).
商品描述(中文翻譯)
sed & awk 描述了兩個文本處理程序,它們是 UNIX 程式設計師工具箱中的重要組成部分。
sed 是一個「流編輯器」,用於編輯可能過大而無法作為單一文件編輯的文本流,或可能作為更大數據處理步驟的一部分即時生成的文本流。使用 sed 最常見的操作是替換,即用另一個文本塊替換一個文本塊。
awk 是一種完整的程式語言。與許多傳統語言不同,awk 是「數據驅動的」——你指定你感興趣的數據類型以及在找到該數據時要執行的操作。awk 為你做了許多事情,包括自動打開和關閉數據文件、讀取記錄、將記錄拆分為字段以及計算記錄數量。雖然 awk 提供了大多數傳統程式語言的功能,但它還包括一些非常規功能,例如擴展正則表達式匹配和關聯數組。sed & awk 詳細描述了這兩個程序,並包括一章示例 sed 和 awk 腳本。
本版涵蓋了 POSIX 標準所要求的 sed 和 awk 功能。這對 awk 影響最為顯著,因為 POSIX 標準化了一個新變量 CONVFMT 和新函數 toupper() 和 tolower()。CONVFMT 變量指定在將數字轉換為字符串時使用的轉換格式(awk 以前使用 OFMT 來達成此目的)。toupper() 和 tolower() 函數各接受一個(假設為混合大小寫的)字符串參數,並返回一個新版本的字符串,所有字母都轉換為相應的大小寫。
此外,本版還涵蓋了自第一版以來新推出的 GNU sed。它還更新了第一版對 Bell Labs nawk 和 GNU awk(gawk)的涵蓋,涵蓋了 mawk,這是一個額外的免費可用的 awk 實現,並簡要討論了三個商業版本的 awk,即 MKS awk、Thompson Automation awk(tawk)和 Videosoft(VSAwk)。