• Complain

JP Vossen - bash Cookbook, 2nd Edition

Here you can read online JP Vossen - bash Cookbook, 2nd Edition full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2017, publisher: O’Reilly Media, Inc., genre: Computer. 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.

JP Vossen bash Cookbook, 2nd Edition

bash Cookbook, 2nd Edition: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "bash Cookbook, 2nd Edition" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

For system administrators, programmers, and end users, shell command or carefully crafted shell script can save you time and effort, or facilitate consistency and repeatability for a variety of common tasks. This cookbook provides more than 300 practical recipes for using bash, the popular Unix shell that enables you to harness and customize the power of any Unix or Linux system.

Ideal for new and experienced users alikeincluding proficient Windows users and sysadminsthis updated second edition helps you solve a wide range of problems. Youll learn ways to handle input/output, file manipulation, program execution, administrative tasks, and many other challenges. Each recipe includes one or more scripting examples and a discussion of why the solution works.

Youll find recipes for problems including:

  • Standard output and input, and executing commands
  • Shell variables, shell logic, and arithmetic
  • Intermediate shell tools and advanced scripting
  • Searching for files with find, locate, and slocate
  • Working with dates and times
  • Creating shell scripts for various end-user tasks
  • Working with tasks that require parsing
  • Writing secure shell scripts
  • Configuring and customizing bash

JP Vossen: author's other books


Who wrote bash Cookbook, 2nd Edition? Find out the surname, the name of the author of the book and a list of all author's works by series.

bash Cookbook, 2nd Edition — 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, 2nd Edition" 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
Appendix A. Reference Lists

This appendix collects many tables of values, settings, operators, commands, variables, and more in one place for easy reference.

bash Invocation

Here are the options you can use when invoking current versions of bash. The multi-character options must appear on the command line before the single-character options. Login shells usually have the options -i (interactive), -s (read from standard input), and -m (enable job control) set internally.

In addition to those listed in ).

For further reference, see http://bit.ly/2wtEjA8.

Table A-1. Command-line options to bash
OptionMeaning

-cstring

Commands are read from string, if present. Any arguments after string are interpreted as positional parameters, starting with $0.

-D

A list of all double-quoted strings preceded by $ is written to standard output. These are the strings that are subject to language translation when the current locale is not C or POSIX. This also turns on the -n option.

-i

Makes the shell an interactive shell. Ignores signals TERM, INT, and QUIT. With job control in effect, TTIN, TTOU, and TSTP are also ignored.

-l

Makes bash act as if it were invoked as a login shell.

-ooption

Takes the same arguments as set -o (see ).

-O,
+Oshopt-option

shopt-option is one of the shell options accepted by the shopt builtin. If shopt-option is present, -O sets the value of that option; +O unsets it. If shopt-option is not supplied, the names and values of the shell options accepted by shopt are written to standard output. If the invocation option is +O, the output is displayed in a format that may be reused as input.

-s

Reads commands from standard input. If an argument is given to bash, this flag takes precedence (i.e., the argument wont be treated as a script name and standard input will be read).

-r

Makes the shell a restricted shell.

-v

Prints shell input lines as theyre read.

-

Signals the end of options and disables further option processing. Any options after this are treated as filenames and arguments. -- is synonymous with -.

--debugger

Arranges for the debugger profile to be executed before the shell starts. Turns on extended debugging mode and shell function tracing in bash 3.0 or later.

--dump-strings

Does the same as -D.

--dump-po-strings

Does the same as -D, but the output is in the GNU gettext portable object (.po) file format.

--help

Displays a usage message and exits.

--login

Makes bash act as if it were invoked as a login shell. Same as -l.

--noediting

Does not use the GNU readline library to read command lines if the shell is interactive.

--noprofile

Does not read the startup file /etc/profile or any of the personal initialization files.

--norc

Does not read the initialization file ~/.bashrc if the shell is interactive. This is on by default if the shell is invoked as sh.

--posix

Changes the behavior of bash to follow the POSIX standard more closely where the default operation of bash is different.

--rcfile file , --init-file file

Executes commands read from file instead of the initialization file ~/.bashrc, if the shell is interactive.

--restricted

Equivalent to -r.

--verbose

Equivalent to -v.

--version

Shows the version number of this instance of bash and then exits.

Prompt String Customizations

the prompt customizations that are available. The customizations \[ and \] are not available in bash versions prior to 1.14. \a, \e, \H, \T, \@, \v, and \V are not available in versions prior to 2.0. \A, \D, \j, \l, and \r are only available in later versions of bash 2.0 and in bash 3.0+.

See http://bit.ly/2wlpQHf.

Table A-2. Prompt string format codes
CommandMeaning

\a

The ASCII bell character (007).

\A

The current time in 24-hour HH:MM format.

\d

The date in Weekday Month Day format.

\D{format}

The format is passed to strftime(3) and the result is inserted into the prompt string; an empty format results in a locale-specific time representation. The braces are required.

\e

The ASCII escape character (033).

\H

The hostname.

\h

The hostname up to the first ..

\j

The number of jobs currently managed by the shell.

\l

The basename of the shells terminal device name.

\n

A carriage return and line feed.

\r

A carriage return.

\s

The name of the shell.

\T

The current time in 12-hour HH:MM:SS format.

\t

The current time in 24-hour HH:MM:SS format.

\@

The current time in 12-hour a.m./p.m. format.

\u

The username of the current user.

\v

The version of bash (e.g., 2.00).

\V

The release of bash (the version and patch level; e.g., 3.00.0).

\w

The current working directory, with

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «bash Cookbook, 2nd Edition»

Look at similar books to bash Cookbook, 2nd Edition. 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, 2nd Edition»

Discussion, reviews of the book bash Cookbook, 2nd Edition 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.