curl using file descriptor is *chef’s kiss* for scripting.
For outputs:
```bash
exec 3> output.txt
curl -o /dev/fd/3 http://example.com
```
Cleaner than `>>` and no risk of truncation.
Bonus: Works great with `lsof` if you need to debug what’s holding the fd open.
For outputs:
```bash
exec 3> output.txt
curl -o /dev/fd/3 http://example.com
```
Cleaner than `>>` and no risk of truncation.
Bonus: Works great with `lsof` if you need to debug what’s holding the fd open.
