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:
Gregory 2019-10-24 09:18:36 -04:00 committed by GitHub
commit 097a21024c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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