X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=sd%2FREADME.md;h=68ac2c5f8b936e933920b3df69ecb65993180688;hb=afe8aab57a5bc8d67886e923d2aa86691506c1f4;hp=cbbff5bde9bb494c396fdafa08c57bf47cfc3528;hpb=73156662b45bbecbbf9626934940b772469243e0;p=webi-installers%2F.git diff --git a/sd/README.md b/sd/README.md index cbbff5b..68ac2c5 100644 --- a/sd/README.md +++ b/sd/README.md @@ -1,36 +1,34 @@ --- -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. - ## 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 +41,3 @@ Use the `@beta` tag for pre-releases. cat exm.txt| sd -s '@' '' here is an example ``` - -