I have some output that prints an element every line. I want to be able to parse that output in chunks of N, even if the number of lines is not a multiple of N.
find . -f | chunk 10 1 # shows first chunk of size 10
find . -f | chunk 10 2 # second chunk of size 10
find . -f | chunk 10 3 # last of size < n
find . -f | chunk 10 4 # does nothing
- - , .
برچسب:
نویسنده: استخدام کار