From e63c2dffd727eb5b0c77bca43d8c781f37f1a604 Mon Sep 17 00:00:00 2001 From: Thomas Jaensch Date: Fri, 1 Apr 2016 10:08:22 -0400 Subject: [PATCH 1/8] Fixed spelling error on line 629 in Bash-Prog-Intro-HOWTO.sgml --- LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml b/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml index d3995a73..7a9703b5 100644 --- a/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml +++ b/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml @@ -626,7 +626,7 @@ Misc Reading user input with read -

In many ocations you may want to prompt the user for some input, and +

In many occasions you may want to prompt the user for some input, and there are several ways to achive this. This is one of those ways: From e262a20568c5f3bc9e10d81ab00b51ea36d96044 Mon Sep 17 00:00:00 2001 From: Thomas Jaensch Date: Fri, 1 Apr 2016 10:14:31 -0400 Subject: [PATCH 2/8] Fixed grammar errors on line 664 in Bash-Prog-Intro-HOWTO.sgml --- LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml b/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml index 7a9703b5..95c3069b 100644 --- a/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml +++ b/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml @@ -661,7 +661,7 @@ Misc

If you need to use fractions, or more math or you just want it, you can use bc to evaluate arithmetic expressions. -

if i ran "echo $[3/4]" at the command prompt, it would return 0 +

If I ran "echo $[3/4]" at the command prompt, it would return 0 because bash only uses integers when answering. If you ran "echo 3/4|bc -l", it would properly return 0.75. From cade35a02aba6f9fa98803acdf4e8c67d9dac1a0 Mon Sep 17 00:00:00 2001 From: Thomas Jaensch Date: Fri, 1 Apr 2016 10:21:18 -0400 Subject: [PATCH 3/8] Fixed grammar errors on line 708 in Bash-Prog-Intro-HOWTO.sgml --- LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml b/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml index 95c3069b..ba28b0e3 100644 --- a/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml +++ b/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml @@ -705,7 +705,7 @@ Misc Capturing a commands output -

This little scripts show all tables from all databases (assuming you got MySQL installed). +

This little script shows all tables from all databases (assuming you got MySQL installed). Also, consider changing the 'mysql' command to use a valid username and password. #!/bin/bash From 81228b2a874ea9ca7449ad9d67e0d0e5c54af63c Mon Sep 17 00:00:00 2001 From: Thomas Jaensch Date: Fri, 1 Apr 2016 10:35:11 -0400 Subject: [PATCH 4/8] Fixed grammar error on line 802 in Bash-Prog-Intro-HOWTO.sgml --- LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml b/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml index ba28b0e3..5d5e4943 100644 --- a/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml +++ b/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml @@ -799,7 +799,7 @@ Tables Useful commands

This section was re-written by Kees (see thank to...) -

Some of these command's almost contain complete programming languages. +

Some of these commands almost contain complete programming languages. From those commands only the basics will be explained. For a more detailed description, have a closer look at the man pages of each command. From 0ceaa283084992a8118f6dbf2740036aa1158864 Mon Sep 17 00:00:00 2001 From: Thomas Jaensch Date: Fri, 1 Apr 2016 10:36:47 -0400 Subject: [PATCH 5/8] Fixed grammar error on line 804 in Bash-Prog-Intro-HOWTO.sgml --- LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml b/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml index 5d5e4943..72401524 100644 --- a/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml +++ b/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml @@ -801,7 +801,7 @@ Tables

This section was re-written by Kees (see thank to...)

Some of these commands almost contain complete programming languages. From those commands only the basics will be explained. For a more detailed - description, have a closer look at the man pages of each command. + description, have a closer look at the main pages of each command. Date: Fri, 1 Apr 2016 10:42:03 -0400 Subject: [PATCH 6/8] Fixed grammar error on line 832 in Bash-Prog-Intro-HOWTO.sgml --- LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml b/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml index 72401524..80351577 100644 --- a/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml +++ b/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml @@ -829,7 +829,7 @@ Tables

Many implementations of the AWK programming language exist (most known interpreters are GNU's gawk and 'new awk' mawk.) The principle is simple: AWK scans for a pattern, and for every - matching pattern a action will be performed. + matching pattern an action will be performed.

Again, I've created a dummy file containing the following lines:

Date: Fri, 1 Apr 2016 10:50:03 -0400 Subject: [PATCH 7/8] Fixed grammar error on line 945 in Bash-Prog-Intro-HOWTO.sgml --- LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml b/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml index 80351577..3d12425e 100644 --- a/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml +++ b/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml @@ -942,7 +942,7 @@ Tables Shows the number of characters possible in x direction. -

It it higly recommended to be familiarized with these programs (at least). There are tons of +

It is higly recommended to be familiarized with these programs (at least). There are tons of little programs that will let you do real magic on the command line.

[some samples are taken from man pages or FAQs] From 622173a98790598d41c5fa9b2cf5194f122be09e Mon Sep 17 00:00:00 2001 From: Thomas Jaensch Date: Fri, 1 Apr 2016 11:13:22 -0400 Subject: [PATCH 8/8] Fixed grammar error on line 1048 in Bash-Prog-Intro-HOWTO.sgml --- LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml b/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml index 3d12425e..97d9ec10 100644 --- a/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml +++ b/LDP/howto/linuxdoc/Bash-Prog-Intro-HOWTO.sgml @@ -1045,7 +1045,7 @@ More Scripts # this for loop iterates through all of the files that we give the program # it does one rename per file given using the program 'sed' - # this is a sinple command line program that parses standard input and + # this is a simple command line program that parses standard input and # replaces a set expression with a give string # here we pass it the file name ( as standard input) and replace the nessesary # text