• Complain

Albing - Bash cookbook: solutions and examples for bash users

Here you can read online Albing - Bash cookbook: solutions and examples for bash users full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. City: Beijing [China];Boston, year: 2018;2017, publisher: OReilly Media, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Albing Bash cookbook: solutions and examples for bash users
  • Book:
    Bash cookbook: solutions and examples for bash users
  • Author:
  • Publisher:
    OReilly Media
  • Genre:
  • Year:
    2018;2017
  • City:
    Beijing [China];Boston
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Bash cookbook: solutions and examples for bash users: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Bash cookbook: solutions and examples for bash users" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Beginning bash -- Standard output -- Standard input -- Executing commands -- Basic scripting : shell variables -- Shell logic and arithmetic -- Intermediate shell tools I -- Intermediate shell tools II -- Finding files: find, locate, slocate -- Additional features for scripting -- Working with dates and times -- End-user tasks as shell scripts -- Parsing and simila tasks -- Writing secure shell scripts -- Advanced scripting -- Configuring and suctomizing bash -- Housekeeping and administrative tasks -- Working faster by typing less -- Tips and traps: common goofs for novices.

Albing: author's other books


Who wrote Bash cookbook: solutions and examples for bash users? Find out the surname, the name of the author of the book and a list of all author's works by series.

Bash cookbook: solutions and examples for bash users — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Bash cookbook: solutions and examples for bash users" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
bash Cookbook

by Carl Albing and JP Vossen

Copyright 2018 Carl Albing and JP Vossen. All rights reserved.

Printed in the United States of America.

Published by OReilly Media, Inc. , 1005 Gravenstein Highway North, Sebastopol, CA 95472.

OReilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://oreilly.com/safari). For more information, contact our corporate/institutional sales department: 800-998-9938 or corporate@oreilly.com .

  • Editor: Jeff Bleiel
  • Production Editor: Kristen Brown
  • Copyeditor: Rachel Head
  • Proofreader: James Fraleigh
  • Indexer: Ellen Troutman-Zaig
  • Interior Designer: David Futato
  • Cover Designer: Karen Montgomery
  • Illustrator: Rebecca Demarest
  • May 2007: First Edition
  • October 2017: Second Edition
Revision History for the Second Edition
  • 2017-10-04: First Release

See http://oreilly.com/catalog/errata.csp?isbn=9781491975336 for release details.

The OReilly logo is a registered trademark of OReilly Media, Inc. bash Cookbook, the cover image, and related trade dress are trademarks of OReilly Media, Inc.

While the publisher and the authors have used good faith efforts to ensure that the information and instructions contained in this work are accurate, the publisher and the authors disclaim all responsibility for errors or omissions, including without limitation responsibility for damages resulting from the use of or reliance on this work. Use of the information and instructions contained in this work is at your own risk. If any code samples or other technology this work contains or describes is subject to open source licenses or the intellectual property rights of others, it is your responsibility to ensure that your use thereof complies with such licenses and/or rights.

978-1-491-97533-6

[LSI]

Preface

Every modern operating system has at least one shell, and some have many. Some shells are command lineoriented, such as the shell discussed in this book. Others are graphical, like Windows Explorer or the Macintosh Finder. Some users will interact with the shell only long enough to launch their favorite application, and then never emerge from that until they log off. But most users spend a significant amount of time using the shell. The more you know about your shell, the faster and more productive you can be.

Whether you are a system administrator, a programmer, or an end user, there are certainly occasions where a simple (or perhaps not so simple) shell script can save you time and effort, or facilitate consistency and repeatability for some important task. Even using an alias to change or shorten the name of a command you use often can have a significant effect. Well cover this and much more.

As with any general programming language, there is more than one way to do a given task in the shell. In some cases, there is only one best way, but in most cases there are at least two or three equally effective and efficient ways to write a solution. Which way you choose depends on your personal style, creativity, and familiarity with different commands and techniques. This is as true for us as authors as it is for you as the reader. In most cases we will choose a single method and implement it. In a few cases we may choose a particular method and explain why we think its the best. We may also occasionally show more than one equivalent solution so you can choose the one that best fits your needs and environment.

There is also sometimes a choice between a clever way to write some code, and a readable way. We will choose the readable way every time because experience has taught us that no matter how transparent you think your clever code is now, 6 or 18 months and 10 projects from now, you will be scratching your head asking yourself what you were thinking. Trust us: write clear code, and document ityoull thank yourself (and us) later.

Who Should Read This Book

This book is for anyone who uses a Unix or Linux system, as well as system administrators who may use several systems on any given day. With it, you will be able to create scripts that allow you to accomplish more, in less time, more easily, consistently, and repeatably than ever before.

Anyone? Yes. New users will appreciate the sections on automating repetitive tasks, making simple substitutions, and customizing their environment to be more friendly and perhaps behave in more familiar ways. Power users and administrators will find new and different solutions to common tasks and challenges. Advanced users will have a collection of techniques they can use at a moments notice to put out the latest fire, without having to remember every little detail of syntax.

Ideal readers include:

  • New Unix or Linux users who dont know much about the shell, but want to do more than point and click

  • Experienced Unix or Linux users and system administrators looking for quick answers to shell scripting questions

  • Programmers who work in a Unix or Linux (or even Windows) environment and want to be more productive

  • New Unix or Linux sysadmins, or those coming from a Windows environment who need to come up to speed quickly

  • Experienced Windows users and sysadmins who want a more powerful scripting environment

This book will only briefly cover basic and intermediate shell scriptingsee Learning the bash Shell, 3rd Edition, by Cameron Newham (OReilly) and Classic Shell Scripting by Nelson H. F. Beebe and Arnold Robbins (OReilly) for more in-depth coverage. Instead, our goal is to provide solutions to common problems, with a strong focus on the how to rather than the theory. We hope this book will save you time when figuring out solutions or trying to remember syntax. In fact, thats why we wrote this book: its what we wanted, one we could read through to get ideas, then refer to for practical working examples when needed. That way we wouldnt have to remember the subtle differences between the shell, Perl, C, and so forth.

This book assumes you have access to a Unix or Linux system (or see Recipes ) and are familiar with logging in, typing basic commands, and using a text editor. You do not have to be root to use the vast majority of the recipes, though there are a few, particularly dealing with installing bash, where root access will be needed.

About This Book

This book covers bash, the GNU Bourne Again Shell, which is a member of the family of shells that includes the original Bourne shell, sh, the Korn shell, ksh, and the public domain Korn shell, pdksh. While these and other shells such as dash and zsh are not specifically covered, odds are that most of the scripts will work pretty well with them.

You should be able to read this book cover to cover, and also just pick it up and read anything that catches your eye. But perhaps most importantly, we hope that when you have a question about how to do something or you need a hint, you will be able to easily find the right answeror something close enoughand save time and effort.

A great part of the Unix philosophy is to build simple tools that do one thing well, then combine them as needed. This combination of tools is often accomplished via a shell script because these commands, called pipelines, can be long or difficult to remember and type. Where appropriate, well cover the use of many of these tools in the context of the shell script as the glue that holds the pieces together to achieve the goal.

The first edition of this book was written using OpenOffice.org Writer running on whatever Linux or Windows machine happened to be handy, and kept in Subversion (see ). That source was later converted to DocBook for production.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Bash cookbook: solutions and examples for bash users»

Look at similar books to Bash cookbook: solutions and examples for bash users. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Bash cookbook: solutions and examples for bash users»

Discussion, reviews of the book Bash cookbook: solutions and examples for bash users and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.