Tuc
Dev tools
command line text utility
SHOW HN2022
How HN took it
15 positive, 18 neutral or asking, 0 mixed, 4 critical, out of 37 comments about the project. Thread score +0.40.
Idea: 9 for, 2 againstDesign: 0 for, 1 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Negative indexes and unlimited-length delimiters fix cut's limitations
From 3 comments
This is great! I always felt like cut was really handicapped by lack of negative indexes.
bitcraft on HNJust want to say thank you for the unlimited delimiters - this was something that always limited my usage of cut so just this feature alone makes tuc worth it
overlordalex on HNThis is an incredibly useful improvement over cut, thank you. The mental distance from cut to awk/sed is often just too high and having a more useful utility will drastically…
mmastrac on HN
Regex delimiter support, including -e option
From 2 comments
Triple thumbs up for -e Never understood why that was never added to cut in the first place.
ur-whale on HNThis is the "cut" I've always wanted!
linsomniac on HN
Compressing repeated delimiters helps with aligned column output
From 1 comment
This is awesome. Especially the ability to compress delimiters. I can't tell you how many times I want to grab a couple fields from the output of another command but can't get…
gleenn on HN
Objections
Discussion of Rust tools replacing core utilities and portability concerns
From 2 comments
The problem I see is that I don’t see those consolidating anytime soon into a new set of ubiquitous “core” utilities that can be expected to be available everywhere.
layer8 on HNThat doesn't solve the "available everywhere" problem. It potentially would make the tools easier to install on Debian-based systems, if you have root access. I'm not sure any…
michaelmior on HN
Whitespace-run splitting still needs a flag rather than being default
From 1 comment
Doesn't seem to fix the #1 thing missing from cut: an easy syntax for splitting on whitespace sequences (rather than a single space), like awk does by default. (I see that it…
donio on HN
Requests
Support for quoted and escaped fields such as CSV
From 1 comment
It'd be nice if it could split and support escapes and quoted strings. I often run into issues with things like csv where fields might be quoted or quoted strings where quotes…
nijave on HN
Questions
How does tuc differ from cut and what does splitting text into lines mean
From 2 comments
Seems similar in intent to choose (https://github.com/theryangeary/choose) as a cut which doesn't suck. The features outlined are very close, I just don't understand what "can…
masklinn on HNRef. your $ tuc -d ' ' -f 2 < input how is different from $ cut -d ' ' -f 2 input ?
I_complete_me on HN
Alternatives named
choose
From 1 comment
Seems similar in intent to choose (https://github.com/theryangeary/choose) as a cut which doesn't suck. The features outlined are very close, I just don't understand what "can…
masklinn on HN
hck
From 2 comments
Nice, especially the format output. See also: * hck (https://github.com/sstadick/hck) - close to drop in replacement for cut that can use a regex delimiter instead of a fixed…
asicsp on HNIt's also very similar to my tool hck (https://github.com/sstadick/hck) which is in turn similar to choose, just faster, supports compression, and supports column selection via…
totalperspectiv on HN
rcut
From 1 comment
Nice, especially the format output. See also: * hck (https://github.com/sstadick/hck) - close to drop in replacement for cut that can use a regex delimiter instead of a fixed…
asicsp on HN
lam, jot, rs
From 1 comment
Seems a bit of functionality overlap with lam/jot/rs; have you looked at those? They're from BSD originally. Included in macos, and in Linux distros as bsd-utils.
emmelaich on HN