mirror of
https://github.com/chmln/sd
synced 2024-11-05 17:38:23 +00:00
Merge pull request #55 from tshepang/patch-1
readme: reduce the need to look up the meanings of those short options
This commit is contained in:
commit
097a21024c
1 changed files with 2 additions and 2 deletions
|
@ -181,13 +181,13 @@ This example uses [fd](https://github.com/sharkdp/fd).
|
|||
Good ol' unix philosophy to the rescue.
|
||||
|
||||
```sh
|
||||
sd 'from "react"' 'from "preact"' $(fd -t f)
|
||||
sd 'from "react"' 'from "preact"' $(fd --type file)
|
||||
```
|
||||
|
||||
Same, but with backups (consider version control).
|
||||
|
||||
```bash
|
||||
for file in $(fd -t f); do
|
||||
for file in $(fd --type file); do
|
||||
cp "$file" "$file.bk"
|
||||
sd 'from "react"' 'from "preact"' "$file";
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue