How can I use curl with a file descriptor for advanced data handling?

22 Replies, 2242 Views

For those who love one-liners, here’s a neat trick:

```bash
curl -d @<(grep "pattern" your_file.txt) http://example.com
```

This way, you can filter data on the fly and send it directly. No temp files needed!

Messages In This Thread



Users browsing this thread: 2 Guest(s)