售价: ¥310.00 待定配送费
前翻 后翻
正在播放... 已暂停   您正在聆听的 Audible 音频版本的样品。
了解更多信息
查看全部 3 张图片

Classic Shell Scripting (英语) 平装 – 2005年5月24日

平均5.0 星 1 条商品评论
| 天天低价·正品质优
|
分享
广告

显示所有 2 格式和版本 隐藏其他格式和版本
亚马逊价格
全新品最低价 非全新品最低价
平装
"请重试"
¥310.00
¥310.00
 

click to open popover

看过此商品后顾客买的其它商品?

无需Kindle设备,下载免费Kindle阅读软件,即可在您的手机、电脑及平板电脑上畅享阅读。

  • iPhone/iPad/Mac
  • Android手机或平板电脑

请输入您的手机号码,获取Kindle阅读软件的下载链接。



基本信息

  • 出版社: O'Reilly Media, Inc, USA (2005年5月24日)
  • 平装: 560页
  • 语种: 英语
  • ISBN: 0596005954
  • 条形码: 9780596005955, 0636920005957
  • 商品尺寸: 17.8 x 2.8 x 23.3 cm
  • 商品重量: 880 g
  • ASIN: 0596005954
  • 用户评分: 平均5.0 星 1 条商品评论
  • 亚马逊热销商品排名: 图书商品里排第797,128名 (查看图书商品销售排行榜)
  • 您想告诉我们您发现了更低的价格?

商品描述

作者简介

Arnold Robbins, an Atlanta native, is a professional programmer and technical author. He has worked with Unix systems since 1980, when he was introduced to a PDP-11 running a version of Sixth Edition Unix. He has been a heavy AWK user since 1987, when he became involved with gawk, the GNU project's version of AWK. As a member of the POSIX 1003.2 balloting group, he helped shape the POSIX standard for AWK. He is currently the maintainer of gawk and its documentation. He is also coauthor of the sixth edition of O'Reilly's Learning the vi Editor. Since late 1997, he and his family have been living happily in Israel. Nelson Beebe is a long time Unix user and system administrator, and has helped for years on Usenet newsgroups.

目录

Foreword Preface 1. Background 1.1 Unix History 1.2 Software Tools Principles 1.3 Summary 2. Getting Started 2.1 Scripting Languages Versus Compiled Languages 2.2 Why Use a Shell Script? 2.3 A Simple Script 2.4 Self-Contained Scripts: The #! First Line 2.5 Basic Shell Constructs 2.6 Accessing Shell Script Arguments 2.7 Simple Execution Tracing 2.8 Internationalization and Localization 2.9 Summary 3. Searching and Substitutions 3.1 Searching for Text 3.2 Regular Expressions 3.3 Working with Fields 3.4 Summary 4. Text Processing Tools 4.1 Sorting Text 4.2 Removing Duplicates 4.3 Reformatting Paragraphs 4.4 Counting Lines, Words, and Characters 4.5 Printing 4.6 Extracting the First and Last Lines 4.7 Summary 5. Pipelines Can Do Amazing Things 5.1 Extracting Data from Structured Text Files 5.2 Structured Data for the Web 5.3 Cheating at Word Puzzles 5.4 Word Lists 5.5 Tag Lists 5.6 Summary 6. Variables, Making Decisions, and Repeating Actions 6.1 Variables and Arithmetic 6.2 Exit Statuses 6.3 The case Statement 6.4 Looping 6.5 Functions 6.6 Summary 7. Input and Output, Files, and Command Evaluation 7.1 Standard Input, Output, and Error 7.2 Reading Lines with read 7.3 More About Redirections 7.4 The Full Story on printf 7.5 Tilde Expansion and Wildcards 7.6 Command Substitution 7.7 Quoting 7.8 Evaluation Order and eval 7.9 Built-in Commands 7.10 Summary 8. Production Scripts 8.1 Path Searching 8.2 Automating Software Builds 8.3 Summary 9. Enough awk to Be Dangerous 9.1 The awk Command Line 9.2 The awk Programming Model 9.3 Program Elements 9.4 Records and Fields 9.5 Patterns and Actions 9.6 One-Line Programs in awk 9.7 Statements 9.8 User-Defined Functions 9.9 String Functions 9.10 Numeric Functions 9.11 Summary 10. Working with Files 10.1 Listing Files 10.2 Updating Modification Times with touch 10.3 Creating and Using Temporary Files 10.4 Finding Files 10.5 Running Commands: xargs 10.6 Filesystem Space Information 10.7 Comparing Files 10.8 Summary 11. Extended Example: Merging User Databases 11.1 The Problem 11.2 The Password Files 11.3 Merging Password Files 11.4 Changing File Ownership 11.5 Other Real-World Issues 11.6 Summary 12. Spellchecking 12.1 The spell Program 12.2 The Original Unix Spellchecking Prototype 12.3 Improving ispell and aspell 12.4 A Spellchecker in awk 12.5 Summary 13. Processes 13.1 Process Creation 13.2 Process Listing 13.3 Process Control and Deletion 13.4 Process System-Call Tracing 13.5 Process Accounting 13.6 Delayed Scheduling of Processes 13.7 The /proc Filesystem 13.8 Summary 14. Shell Portability Issues and Extensions 14.1 Gotchas 14.2 The bash shopt Command 14.3 Common Extensions 14.4 Download Information 14.5 Other Extended Bourne-Style Shells 14.6 Shell Versions 14.7 Shell Initialization and Termination 14.8 Summary 15. Secure Shell Scripts: Getting Started 15.1 Tips for Secure Shell Scripts 15.2 Restricted Shell 15.3 Trojan Horses 15.4 Setuid Shell Scripts: A Bad Idea 15.5 ksh93 and Privileged Mode 15.6 Summary A. Writing Manual Pages B. Files and Filesystems C. Important Unix Commands Bibliography Glossary Index

商品评论

平均5.0 星
5 星
1
4 星
0
3 星
0
2 星
0
1 星
0
查看买家评论
与其他用户分享您的观点

热门买家评论

版本: 平装 已确认购买
作为工具书还不错,主要是因为翻译的版本太差了。。
回应 这条评论对您有用吗? 正在提交你的反馈。
感谢您的反馈。
很抱歉,我们没有记录您的投票。请重试
举报

此商品在美国亚马逊上最有用的商品评论 (beta) (可能包括"Early Reviewer Rewards Program"的评论)

美国亚马逊: 平均4.5 星 44 条评论
20/20 人认为此评论有用
平均5.0 星 A solid book on portable shell scripting 2011年8月2日
评论者 Alex Gezerlis - 已在美国亚马逊上发表
版本: 平装 已确认购买
"Classic Shell Scripting" by Arnold Robbins and Nelson H. F. Beebe is a decent text on portable shell scripting, which also contains a fair amount of awk. Though written in tutorial form, it explicitly assumes that the reader knows how to use the shell interactively and, as I show below, in some cases implicitly assumes that the reader already knows the basics of shell scripting.

The Good: Robbins and Beebe have created a pedagogically sound book which contains tables, fascinating digressions, sidebars (with major options on tools, along with caveats), an annotated bibliography, as well as a glossary. The book can be read straight through, since each chapter builds on the preceding ones, but the aforementioned resources are especially handy when using this book as a reference. Were it not for the tables and sidebars it would be difficult to look up things like how to set the field separator in different tools (-t in sort, -d in cut, -F in awk) or how to ensure case-insensitivity (-i in grep, -f in sort). The topics the authors cover throughout the book are interesting, but the real meat is in chapters 3, 6, 7, 9, 10, which discuss regular expressions, sed, awk (Robbins is the maintainer of gawk and also the co-author/author of books on awk), control flow, command evaluation, and file manipulation. Most of the other chapters are applications of the topics introduced up to that point, and serve to drive home the lessons already learned (though there are pleasant exceptions to this pattern, e.g. the section on crontab in ch. 13, or the material on the Unix filesystem in Appendix B). The writing is generally relaxed and at times borderline silly, e.g. "exit 42 #Return the answer to the ultimate question" or "root) nasty stuff here #Danger Will Robinson, danger!". Importantly, the entire book is focused on scripting that is compatible with the POSIX standard(s) (e.g., the authors prefer printf to echo) -- it is similar in that sense to Peter Seebach's book on portable shell scripting from Apress. Apart from the pointers on the behavior of different shells scattered throughout the volume, the authors have also devoted ch. 14 to portability gotchas and shell-language extensions.

The Bad: despite the tutorial nature of this text, it does have a few pedagogical flaws. These include the use of concepts before they are introduced (e.g. here-documents are used in ch. 4 but are mentioned by name only in ch. 5; the ${varname:-word} operator is used in ch. 5 but is not defined until ch. 6; the authors use >&2 three times in ch. 6 before pointing out that they will explain it in ch. 7). Such minor slip-ups extend to the use of concepts that are just not explained anywhere in the book (e.g. in ch. 3 the d command in sed, or in ch. 5 the -c option in grep). In yet other cases, the authors simply do not practice what they preach (e.g. in ch. 7 they recommend $() for command substitution, but then use `` in all but one of the examples in chapter 8, titled "Production Scripts"). On a different note, using this volume as a reference is not as easy as it should be. Tracking down an explanation months after you've finished reading the book can be frustrating, as I will illustrate with a specific example: the index entry for globbing says "see pathname expansion"; going to the index entry for pathname expansion we are pointed only to p. 496 (the glossary entry for that term), but not to any sections in any of the chapters. In the glossary entry on p. 496 we are told that globbing a.k.a. pathname expansion is also called wildcarding. Heading back to the index, no entry for wildcarding is to be found; there's an entry for wildcard expansion, instead, which looks relevant. Unfortunately, that entry not only points to irrelevant sections, but also ends with the inimitable "see also pathname expansion". All the while, subsection 7.5.2 is titled "Wildcarding", but you wouldn't get there simply by using the index. Sadly, the table of contents is similarly unhelpful in this context, since it includes sections, but not subsections.

This book could be shorter, but it's still worth reading. I especially enjoyed the sections on regular expressions and on awk. As already explained, readers who know nothing about shell scripting may find this a difficult read, so they might want to first go over "Learning the bash shell" by Newham & Rosenblatt or a similar volume. Finally, access to an ebook version can make up for the deficiencies of the index when using Robbins' & Beebe's text as a reference. All in all, 4.5 stars.

Alex Gezerlis
3/3 人认为此评论有用
平均5.0 星 Great shell scripting book - examples galore! 2016年10月18日
评论者 Amazon Customer - 已在美国亚马逊上发表
版本: 平装 已确认购买
For me, this is an excellent book! I've written a few shell scripts over the last several years, but I always had to look up the syntax, and never really got into the flow of it. While reading this book, I started coding some of the examples and it just clicked!

I'm now writing a lot of little (and not so little; 1200 lines of bash scripts so far) shell scripts. There were always several little nuances that always bugged me, but the examples helped me remember how to do what.

And there are a lot of examples of not only bash (and sh, ksh) but sed, awk, and others that help you along.

Worth keeping on your bookshelf. I'd buy it again in a second.
2/2 人认为此评论有用
平均5.0 星 Decrypting the mystery of shell scripting is what this book does. 2015年3月1日
评论者 jaramill - 已在美国亚马逊上发表
版本: 平装 已确认购买
Until the past two years, my shell scripting was limited and basic without even knowing you can write "functions" in a shell script. Like how could you do that? This book was concise an to the point and with my basic knowledge of understanding Unix is like "lego" (each command can take input and give output which can be connected another command) then the lightbulb went off and then shell scripting became not so "cryptic" and mysterious. Just follow the syntax....to the LETTER and you can write powerful scripts. I do agree that heavy testing should be done using "echo" or "printf" before running commands to "move/rename" or worse "delete/remove".

Korn Shell is the popular one and now I find myself even more comfortable and confident in writing shell scripts with heavy error trapping and being elegant in exiting properly. Excellent book and now I'm on to reading the O'Reilly book "Learing the Korn Shell" by Bill Rosenblatt
1/1 人认为此评论有用
平均5.0 星 After 17 Years I Still Learned Some Shell 2013年10月29日
评论者 Michael L. Jenkins - 已在美国亚马逊上发表
版本: Kindle电子书 已确认购买
I've been writing Korn Shell for over 17 years and I figured this book would offer me nothing more, but I was wrong. Just the two pages of notes I took from my first read made it well worth the money. Full of examples that are easy to follow, this book can take your scripts in new directions. I wish there was more detail on using functions to return Boolean values, but that's about the only complaint I can muster and that's if I'm being really picky. This is by far one of my favorite books on the subject. These guys get "it" and they can help the reader get "it" too. I highly recommend this book to all UNIX/Linux scripters, regardless of the shell they use.
平均5.0 星 Great way to get started with Shell Scripting 2013年4月26日
评论者 Mel - 已在美国亚马逊上发表
版本: Kindle电子书 已确认购买
I've been wanting to understand more about Shell Scripting for quite a while but really only ever learned enough to get basic things done or fix existing scripts as needed. Also, most online tutorials or guides seem fragmented. This book was a great way to learn not only how to get things done but also why the shell command exist in the form that they're in. Since reading this book I've managed to create many scripts to automate several daily tasks at work.

I'd definitely recommend it to anyone new to Linux or even experienced Linux users looking to get a better understanding of the Shell.