You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, thanks for this great tool. For my use case, I want to split a file into two chunks - a small chunk and a large chunk. The small chunk serves as "canary" to verify an operation. Once verified, I can repeat the operation with the large chunk.
I looked into doing this with xsv split, however it will split the file into $$n$$ chunks of size $$m$$, whereas I'm looking to split the file into two chunks (one of size $$m$$ and the other of size $$m \times (n-1)$$). Although I can re-join the $$n-1$$ chunks using xsv cat rows, this is a bit finicky.
Looking at other languages, Python's str.split has a maxsplit argument, Go has strings.SplitN, and Rust has str.splitn. Would you consider a similar argument to xsv split? Thanks!
The text was updated successfully, but these errors were encountered:
Hello, thanks for this great tool. For my use case, I want to split a file into two chunks - a small chunk and a large chunk. The small chunk serves as "canary" to verify an operation. Once verified, I can repeat the operation with the large chunk.
I looked into doing this with$$n$$ chunks of size $$m$$ , whereas I'm looking to split the file into two chunks (one of size $$m$$ and the other of size $$m \times (n-1)$$ ). Although I can re-join the $$n-1$$ chunks using
xsv split
, however it will split the file intoxsv cat rows
, this is a bit finicky.Looking at other languages, Python's
str.split
has amaxsplit
argument, Go hasstrings.SplitN
, and Rust hasstr.splitn
. Would you consider a similar argument toxsv split
? Thanks!The text was updated successfully, but these errors were encountered: