This is part of the getitem kata: python-getitem, rust-getitem, swift-getitem. getitem is a command-line utility which lets you use Python splice syntax to filter rows and columns. This is to present a handier interface than cat, head, tail, cut, awk, etc.. It buffers only as much as necessary, and can be used with streams or files.
./getitem -hBuilds into .build/release/getitem:
swift build --configuration=release
swift test