{"repo":"sstadick/hck","free":true,"listed":false,"github":"https://github.com/sstadick/hck","clone":"git clone https://github.com/sstadick/hck.git","description":"A sharp cut(1) clone.","language":"Rust","stars":742,"topics":["rust","command-line","text-processing"],"license":"Unlicense","category":"cli-tools","readme_excerpt":"🪓 hck A sharp cut(1) clone. hck is a shortening of hack , a rougher form of cut . A close to drop in replacement for cut that can use a regex delimiter instead of a fixed string. Additionally this tool allows for specification of the order of the output columns using the same column selection syntax as cut (see below for examples). No single feature of hck on its own makes it stand out over awk , cut , xsv or other such tools. Where hck excels is making common things easy, such as reordering output fields, or splitting records on a weird delimiter. It is meant to be simple and easy to use while exploring datasets. Think of this as filling a gap between cut and awk . hck is dual-licensed under MIT or the UNLICENSE. Features - Reordering of output columns! i.e. if you use -f4,2,8 the output columns will appear in the order 4 , 2 , 8 - Delimiter treated as a regex, i.e. you can split on multiple spaces without an extra pipe to tr ! - Specification of output delimiter - Selection of columns by header string literal with the -F option, or by regex by setting the -r flag - Input files will be automatically decompressed if their file extension is recognizable and a local binary exists to perform the decompression (similar to ripgrep). See Decompression. - Output can be gzip compressed using the multi-threaded compressors from gzp with -Z flag - This gzipped output is in BGZF format and can be indexed and queried with tabix - Exclude fields by index or by header. - Speed Non-goals -","default_branch":null,"files":null,"tree":[],"storefront":"/r/sstadick","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sstadick/hck/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}