diff --git a/Awk.txt b/Awk.txt index b809089..172f610 100644 --- a/Awk.txt +++ b/Awk.txt @@ -55,7 +55,7 @@ ps -ef | awk '!/^root/' # . for any character, ? zero or one, * zero or more, + one or more # ^ beginning of line, $ end of line -# [] as expected +# [] is any character in it e.g. [acf-j] # | for or # Show all set variables diff --git a/Bash_Piping_and_Script_Automating.txt b/Bash_Piping_and_Script_Automating.txt index ec89c7d..5c21ab5 100644 --- a/Bash_Piping_and_Script_Automating.txt +++ b/Bash_Piping_and_Script_Automating.txt @@ -41,6 +41,7 @@ ls /usr/share/figlet | rev | sort | rev ls /usr/share/figlet | rev | sort | rev > fonts.txt # But it dawned on me to just use sed. sed is short for stream editor +# It is also based on ed, a very old text editor that is still on many systems man sed # so we can use a simple pattern matching format to delete lines that contain