T - a text processing language and utilityt is a concise language for manipulating text, replacing common usage patterns of Unix utilities like grep, sed, cut, awk, sort, and uniq.
The -f flag can be used to switch to file mode: [file, file, ...] .
# Split at index 2 ["a", "b", "c", "d", "e"] → [["a", "b"], ["c", "d", "e"]] (with p2) # Split at multiple indices ["a", "b", "c", "d", "e"] → [["a"], ["b", "c"], ["d", "e"]] (with p1,3) # Chunk into groups of 2 (split at every 2nd index) ["a", "b", "c", "d", "e", "f"] → [["a", "b"], ["c", "d"], ["e", "f"]] (with p::2)Also works on strings:"hello" → ["he", "llo"] (with p2) "abcdef" → ["ab", "cd", "ef"] (with p::2)@ - DescendDescends one level int…