{"by":"riquito","descendants":115,"id":31726472,"kids":[31728859,31734320,31727377,31727302,31728686,31727286,31728052,31727083,31727653,31734293,31731700,31731897,31727887,31729543,31731602,31729066,31731513,31727955,31727518,31731802,31729123,31726504],"score":241,"text":"Announcing `tuc`, a utility similar to coreutils `cut`, but more powerful.\nIt allows to split text or bytes into parts and reassemble them in any order.<p>I always found `cut` very practical for some tasks where `sed` or `awk` were overkill or awkward to use, but I also felt the need for more features.<p>Some key differences from `cut`:\n- parts can be referenced by negative indexes\n- delimiters can be any number of characters long, or match a regex\n- can split text into lines, and reassemble them","time":1655132158,"title":"Show HN: Tuc – When cut doesn’t cut it","type":"story","url":"https://github.com/riquito/tuc"}