Hacker News new | ask | show | jobs
by mtdewcmu 4430 days ago
The easiest way to handle things like sparse files correctly is to invoke a program like GNU dd that already has this feature built in. GNU cp handles it, too, but it doesn't accept input from stdin.