From ff666bf689bb32728c354fddc1545897d09d61dd Mon Sep 17 00:00:00 2001 From: sspencerwire Date: Tue, 23 Jan 2024 09:19:20 -0600 Subject: [PATCH] minor Anna final edits * philosophy misspelling * extra period * other minor changes --- docs/books/admin_guide/15-three-swordsmen.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/books/admin_guide/15-three-swordsmen.md b/docs/books/admin_guide/15-three-swordsmen.md index 6519e48ea8..54ba5f8652 100644 --- a/docs/books/admin_guide/15-three-swordsmen.md +++ b/docs/books/admin_guide/15-three-swordsmen.md @@ -11,9 +11,9 @@ tags: # Overview - The GNU/Linux operating system follows the philosophy of "everything is a file". A side consequence of this philosopy is that system administrators often have to interact with files, file names and file contents. + The GNU/Linux operating system follows the philosophy of "everything is a file". A side consequence of this philosophy is that system administrators often have to interact with files, file names and file contents. -Regarding processing file content, the three tools grep, sed, and awk are potent and frequently used, so people call them the "Three Swordsmen". +Regarding processing file content, the three tools `grep`, `sed`, and `awk` are potent and frequently used, so people call them the "Three Swordsmen". ## Regular expressions VS wildcards @@ -28,11 +28,12 @@ Similarities: Differences: * Regular expressions match file content; Wildcards are typically used to match file or directory names. -* Regular expressions can be used on commands such as `grep`, `sed`, `awk`, etc; Wildcards can be used on commands such as `cp`, `find`, `mv`, `touch`, `ls`, etc. +* Regular expressions are typically used on commands such as `grep`, `sed`, `awk`, and so on. +* Wildcards are typically used with commands such as `cp`, `find`, `mv`, `touch`, `ls`, and so on. -### Wildcards in GNU/Linux +### Wildcards in GNU/Linux -GNU/Linux OS supports these wildcards: +GNU/Linux operating systems support these wildcards: | wildcards style | role | | :---: | :---| @@ -40,7 +41,7 @@ GNU/Linux OS supports these wildcards: | * | Matches 0 or more arbitrary characters of a file or directory name.| | [ ] | Matches any single character in parentheses. For example, [one] which means to match o or n or e.| | [-] | Matches any single character within the given range in parentheses. For example, [0-9] matches any single number from 0 to 9. | -| [^] | "logical non" matching of a single character. For example, [^a-zA-Z] represents matching a single nonletter character. | +| [^] | "logical non" matching of a single character. For example, [^a-zA-Z] represents matching a single non-letter character. | | {,} | Non continuous matching of multiple single characters. Separated by commas. | | {..} | Same as [-]. For example {0..9} and {a..z} | @@ -134,7 +135,7 @@ ERE also supports characters with special meanings: #### POSIX character -Sometimes, you may see "POSIX character"(also known as "POSIX character class"). +Sometimes, you may see "POSIX character"(also known as "POSIX character class"). Please note that the author rarely uses the "POSIX character class", but has included this section to enhance basic understanding. | POSIX character | equivalent to | @@ -1973,7 +1974,6 @@ ID Name 7. ENVIRON You can reference operating systems or user-defined variables in `awk` programs. -. ```bash Shell > echo ${SSH_CLIENT}