sed & awk
Home > Computing and Information Technology > Operating systems > sed & awk: UNIX Power Tools(Nutshell Handbooks)
sed & awk: UNIX Power Tools(Nutshell Handbooks)

sed & awk: UNIX Power Tools(Nutshell Handbooks)

|
     0     
5
4
3
2
1




International Edition


About the Book

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).

Table of Contents:
Preface Chapter 1. Power Tools for Editing May You Solve Interesting Problems A Stream Editor A Pattern-Matching Programming Language Four Hurdles to Mastering sed and awk Chapter 2. Understanding Basic Operations Awk, by Sed and Grep, out of Ed Command-Line Syntax Using sed Using awk Using sed and awk Together Chapter 3. Understanding Regular Expression Syntax That's an Expression A Line-Up of Characters I Never Metacharacter I Didn't Like Chapter 4. Writing sed Scripts Applying Commands in a Script A Global Perspective on Addressing Testing and Saving Output Four Types of sed Scripts Getting to the PromiSed Land Chapter 5. Basic sed Commands About the Syntax of sed Commands Comment Substitution Delete Append, Insert, and Change List Transform Print Print Line Number Next Reading and Writing Files Quit Chapter 6. Advanced sed Commands Multiline Pattern Space A Case for Study Hold That Line Advanced Flow Control Commands To Join a Phrase Chapter 7. Writing Scripts for awk Playing the Game Hello, World Awk's Programming Model Pattern Matching Records and Fields Expressions System Variables Relational and Boolean Operators Formatted Printing Passing Parameters Into a Script Information Retrieval Chapter 8. Conditionals, Loops, and Arrays Conditional Statements Looping Other Statements That Affect Flow Control ArraysAn Acronym Processor System Variables That Are Arrays Chapter 9. Functions Arithmetic Functions String Functions Writing Your Own Functions Chapter 10. The Bottom Drawer The getline Function The close() Function The system() Function A Menu-Based Command Generator Directing Output to Files and Pipes Generating Columnar Reports Debugging Limitations Chapter 11. A Flock of awks Original awk Freely Available awks Commercial awks Epilogue Chapter 12. Full-Featured Applications An Interactive Spelling Checker Generating a Formatted Index Spare Details of the masterindex Program Chapter 13. A Miscellany of Scripts uutot.awk--Report UUCP Statistics phonebill--Track Phone Usage combine--Extract Multipart uuencoded Binaries mailavg--Check Size of Mailboxes adj--Adjust Lines for Text Files readsource--Format Program Source Files for troff gent--Get a termcap Entry plpr--lpr Preprocessor transpose--Perform a Matrix Transposition m1--Simple Macro Processor Appendix A. Quick Reference for sed Appendix B. Quick Reference for awk Appendix C. Supplement for Chapter 12 Index


Best Sellers


Product Details
  • ISBN-13: 9781565922259
  • Publisher: O'Reilly Media
  • Publisher Imprint: O'Reilly Media
  • Height: 240 mm
  • No of Pages: 432
  • Returnable: Y
  • Spine Width: 25 mm
  • Width: 180 mm
  • ISBN-10: 1565922255
  • Publisher Date: 08 Apr 1997
  • Binding: Paperback
  • Language: English
  • Returnable: Y
  • Series Title: Nutshell Handbooks
  • Sub Title: UNIX Power Tools


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
sed & awk: UNIX Power Tools(Nutshell Handbooks)
O'Reilly Media -
sed & awk: UNIX Power Tools(Nutshell Handbooks)
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

sed & awk: UNIX Power Tools(Nutshell Handbooks)

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!