From ab00dce9de05cc6f24dc501742e28cdfac17d3dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danny=20M=C3=B6sch?= Date: Tue, 21 Jul 2020 22:50:14 +0200 Subject: [PATCH] sd: Remove option -i in favour of option -p (#4209) Co-authored-by: Starbeamrainbowlabs --- pages/common/sd.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/common/sd.md b/pages/common/sd.md index fa9f3f9a5e..a27ef2e2c0 100644 --- a/pages/common/sd.md +++ b/pages/common/sd.md @@ -1,6 +1,6 @@ # sd -> `sd` is an intuitive find & replace CLI. +> Intuitive find & replace CLI. - Trim some whitespace using regex: @@ -10,10 +10,10 @@ `{{echo 'cargo +nightly watch'}} | sd '(\w+)\s+\+(\w+)\s+(\w+)' 'cmd: $1, channel: $2, subcmd: $3'` -- Find and replace in a file: +- Find and replace in a file printing the result to stdout: -`sd -i {{'window.fetch'}} {{'fetch'}} {{http.js}}` +`sd -p {{'window.fetch'}} {{'fetch'}} {{http.js}}` -- Find and replace across a project: +- Find and replace across a project changing each file in place: -`sd -i {{'from "react"'}} {{'from "preact"'}} $(find . -type f)` +`sd {{'from "react"'}} {{'from "preact"'}} $(find . -type f)`