Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • Can you expand your answer to describe how to do that? Thanks. Commented Jun 11, 2015 at 18:30
  • just updated my reply with example. Commented Jun 11, 2015 at 18:49
  • The 1G is an arbitrary size, after which it starts a new file? Commented Jun 11, 2015 at 19:17
  • 1
    This isn't a particualrly good solution to the problem because it means you can end up with half a message in one file and half in the next. There's also the risk of data loss if the machine crashes while split has data in what could be a large buffer. Given that there are multiple tools that solve this problem properly, I don't think this kind of roll-your-own solution can be at all recommended. Commented Jun 11, 2015 at 19:28
  • 1
    @David Richerby- how about adding -u for unbuffered? Commented Dec 15, 2015 at 20:55