How can I use curl with a file descriptor for better performance? or Is there a way to handle curl us

18 Replies, 987 Views

Pro tip: Combine curl using file descriptor with `<( )` process substitution. Like:

```bash
curl -d @<(grep "stuff" myfile) http://example.com
```

No fd number needed, but same idea—no temp files.

Gotchas? Uh, make sure your data isn’t too big for pipes. Buffering can bite you.

Messages In This Thread



Users browsing this thread: 1 Guest(s)