X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=sd%2FREADME.md;h=33d90eac53e47823c482d3436ae3f39ca8696a58;hb=b1d3b44f966332434d8ec49b2a0df569e9bf8c16;hp=cbbff5bde9bb494c396fdafa08c57bf47cfc3528;hpb=fe73f8758a4079cbd764d616afeb261f9c7f8117;p=webi-installers%2F.git diff --git a/sd/README.md b/sd/README.md index cbbff5b..33d90ea 100644 --- a/sd/README.md +++ b/sd/README.md @@ -1,36 +1,30 @@ --- -title: sd -homepage: https://github.com/chmln/sd +title: sd +homepage: https://github.com/chmln/sd tagline: | sd is an intuitive find & replace CLI. --- - - -### Updating `sd` - -`webi sd@stable` - -Use the `@beta` tag for pre-releases. - +To update or switch versions, run `webi sd@stable` (or `@v0.7`, `@beta`, etc). ## Cheat Sheet -> sd is a productive and faster replacement of sed and awk command used for editing files in command line interface,it uses regex syntax -> similar to those used in JavaScript and Python + +> sd is a productive and faster replacement of sed and awk command used for +> editing files in command line interface,it uses regex syntax similar to those +> used in JavaScript and Python ## Usage of sd: ### Replacing Text in a File ```bash - sd 'original word' 'final word' ./file_to_be_changed +sd 'original word' 'final word' ./file_to_be_changed ``` ### Taking out word inside slashes from a given string ```bash - echo "string output shown /word inside slashes/" | sd '.*(/.*/)' '$1' +echo "string output shown /word inside slashes/" | sd '.*(/.*/)' '$1' /word inside slashes/ ``` @@ -43,5 +37,3 @@ Use the `@beta` tag for pre-releases. cat exm.txt| sd -s '@' '' here is an example ``` - -