From c70067d38fbb6592c4b956d3755b2d7280ff873a Mon Sep 17 00:00:00 2001 From: bonnie Date: Mon, 9 May 2022 00:15:04 +0800 Subject: [PATCH] =?UTF-8?q?edRemove=20=E2=80=98=20=E2=80=99=20style=20quot?= =?UTF-8?q?es=20from=20README.ME?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ec83d4b..8fe73e9 100644 --- a/README.md +++ b/README.md @@ -102,10 +102,10 @@ sudo !! # '?' serves as a single-character "wild card" for filename expansion. /b?n/?at #/bin/cat -# ‘[]’ serves to match the character from a range. +# '[]' serves to match the character from a range. ls -l [a-z]* #list all files with alphabet in its filename. -# ‘{}’ can be used to match filenames with more than one patterns +# '{}' can be used to match filenames with more than one patterns ls *.{sh,py} #list all .sh and .py files ``` @@ -295,11 +295,11 @@ grep -oP '\d*' ``` ##### Grep integer with certain number of digits (e.g. 3) ```bash -grep ‘[0-9]\{3\}’ +grep '[0-9]\{3\}' # or -grep -E ‘[0-9]{3}’ +grep -E '[0-9]{3}' # or -grep -P ‘\d{3}’ +grep -P '\d{3}' ``` ##### Grep only IP address @@ -413,7 +413,7 @@ grep 'A.B' ##### Regex with or without a certain character (e.g. color or colour) ```bash -grep ‘colou?r’ +grep 'colou?r' ``` ##### Grep all content of a fileA from fileB