From e0c82f79a69495fbc3883129dc40af8a6b9a01ac Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sat, 23 Sep 2023 09:14:12 -0700 Subject: [PATCH] Minor fixes in sgit/README.md Change './sgit' to just 'sgit'. Remove space at end of lines. --- src/sgit/README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/sgit/README.md b/src/sgit/README.md index 29de5728c..488d7a236 100644 --- a/src/sgit/README.md +++ b/src/sgit/README.md @@ -63,7 +63,7 @@ substitute you can empty the entire file. For instance **DO NOT** do this: ```sh -./sgit -o n -e 's/.//g' sgit +sgit -o n -e 's/.//g' sgit ``` because it would empty `sgit`! @@ -74,8 +74,8 @@ because it would empty `sgit`! ## Change in this file (_IN MEMORY ONLY_) `\` to `used` but only show lines changed: ```sh -./sgit -I -o n -e 's/\/used/p' README.md -./sgit -I -n -e 's/\/used/p' README.md +sgit -I -o n -e 's/\/used/p' README.md +sgit -I -n -e 's/\/used/p' README.md ``` ## Print out matches of `\` in all files under git control @@ -85,13 +85,13 @@ This is a simpler way of running `git --no-pager grep -h -E '\'|sed needs to be: ```sh -./sgit -I -o n -e '/\/p' . +sgit -I -o n -e '/\/p' . ``` ## With tracing enabled, change references of `\` to `used` in this file and save it: ```sh -./sgit -e 's/\/used/g' -x README.md +sgit -e 's/\/used/g' -x README.md ``` @@ -99,21 +99,21 @@ needs to be: ## With tracing enabled, change references of `\` to `used`, duplicating the lines, in this file and save it: ```sh -./sgit -e 's/\/used/p' -x README.md +sgit -e 's/\/used/p' -x README.md ``` ## Verbosely (level 1) change references of `\` to `used` in this file and save it: ```sh -./sgit -e 's/\/used/g' -v1 README.md +sgit -e 's/\/used/g' -v1 README.md ``` ## Verbosely (level 3) change references of `\` to `used` in this file with a backup as `README.md.bak` ```sh -./sgit -i.bak -e 's/\/used/g' -v3 README.md +sgit -i.bak -e 's/\/used/g' -v3 README.md ``` @@ -134,21 +134,21 @@ Level 2 would not show how many globs remain after each operation. ## Change `\` to `used` but only if it's on the first line ```sh -./sgit -e '1s/\/used/g' README.md +sgit -e '1s/\/used/g' README.md ``` Alternatively you could do one of: ```sh -./sgit -e '1s/\/u&/g' README.md -./sgit -e '1s/\(\\)/u\1/g' README.md +sgit -e '1s/\/u&/g' README.md +sgit -e '1s/\(\\)/u\1/g' README.md ``` ## Change `\` to `crack` but only if it's on the third line ```sh -./sgit -e '3s/\/crack/g' README.md +sgit -e '3s/\/crack/g' README.md ```