https://github.com/zwimer/quote
A tiny CLI used for quoting input lines
https://github.com/zwimer/quote
Last synced: 20 days ago
JSON representation
A tiny CLI used for quoting input lines
- Host: GitHub
- URL: https://github.com/zwimer/quote
- Owner: zwimer
- License: gpl-3.0
- Created: 2022-11-04T23:47:43.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-19T03:44:52.000Z (7 months ago)
- Last Synced: 2024-11-01T20:38:56.596Z (7 months ago)
- Language: Python
- Size: 41 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# quote
A tiny CLI used for quoting input lines
## Example
Consider the directory:
```bash
$ find .
.
./c
./a b
```Here, `xargs` alone will fail if we do: `find . -type f | xargs cat` with:
```
This file is named: c
cat: ./a: No such file or directory
cat: b: No such file or directory
```This is because the file 'a b' is not quoted!
Instead we can do: `find . -type f | quote | xargs cat` and we will get:
```
This file is named: c
This file is named: a b
```