ebook img

Shell Scripting EXPERT RECIPES FOR LINUX, BASH, AND MORE PDF

603 Pages·2015·11 MB·English
by  
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Shell Scripting EXPERT RECIPES FOR LINUX, BASH, AND MORE

Shell Scripting expert recipeS for linux, BaSh, and More introduction ............................................................xxix ⊲ part i aBout the ingredientS chapter 1 The History of Unix, GNU, and Linux .............................. 3 chapter 2 Getting Started .................................................15 chapter 3 Variables .....................................................33 chapter 4 Wildcard Expansion ............................................ 67 chapter 5 Conditional Execution ..........................................83 chapter 6 Flow Control Using Loops ...................................... 111 chapter 7 Variables Continued .......................................... 139 chapter 8 Functions and Libraries .........................................161 chapter 9 Arrays ....................................................... 199 chapter 10 Processes ................................................... 219 chapter 11 Choosing and Using Shells ....................................255 ⊲ part ii recipeS for uSing and extending SySteM toolS chapter 12 File Manipulation .............................................279 chapter 13 Text Manipulation ............................................. 315 chapter 14 Tools for Systems Administration ...............................353 ⊲ part iii recipeS for SySteMS adMiniStration chapter 15 Shell Features ................................................409 chapter 16 Systems Administration .......................................427 chapter 17 Presentation .................................................459 chapter 18 Data Storage and Retrieval .....................................471 chapter 19 Numbers ....................................................483 chapter 20 Processes ................................................... 501 chapter 21 Internationalization ............................................517 Continues ⊲ part iV reference appendix Further Reading ..............................................529 gloSSary ................................................................533 index .....................................................................539 Shell Scripting EXPERT RECIPES FOR LINUX, BASH, AND MORE Shell Scripting EXPERT RECIPES FOR LINUX, BASH, AND MORE Steve Parker Shell Scripting: Expert Recipes for Linux, Bash, and More Published by John Wiley & Sons, Inc. 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright © 2011 by Steve Parker, Manchester, England Published by John Wiley & Sons, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN: 978-0-470-02448-5 ISBN: 978-1-118-16633-8 (ebk) ISBN: 978-1-118-16632-1 (ebk) ISBN: 978-1-118-16631-4 (ebk) Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748- 6008, or online at http://www.wiley.com/go/permissions. Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or pro- motional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services. If professional assistance is required, the services of a competent professional person should be sought. Neither the pub- lisher nor the author shall be liable for damages arising herefrom. The fact that an organization or Web site is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or Web site may provide or recommendations it may make. Further, readers should be aware that Internet Web sites listed in this work may have changed or disappeared between when this work was written and when it is read. For general information on our other products and services please contact our Customer Care Department within the United States at (877) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002. Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books. Library of Congress Control Number: 2011932268 Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Programmer to Programmer, and related trade dress are trade- marks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other countries, and may not be used without written permission. John Wiley & Sons, Inc., is not associated with any product or vendor mentioned in this book. For my daughters, Bethany and Emily, and my wife, Jackie. Putting up with a professional geek is never easy, particularly when it leads to a career which often means a lot of travel and time spent away from home. Also to God, from whom comes all wisdom, intelligence, and learning. The better we understand the Creation, the better chance we have of understanding the Creator. For it is written: “I will destroy the wisdom of the wise; the intelligence of the intelligent I will frustrate. Where is the wise man? Where is the scholar? Where is the philosopher of this age? Has not God made foolish the wisdom of the world?…For the foolishness of God is wiser than man’s wisdom, and the weakness of God is stronger than man’s strength.” 1 Corinthians chapter 1, verses 19, 20, and 25

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.