tar
and find
were written by the devil to make sysadmins even more miserable
@kat@yarn.girlonthemoon.xyz my terrible script https://bytes.4-walls.net/kat/dotfiles/src/branch/main/scripts/Scripts/tinypin-log.sh
@kat@yarn.girlonthemoon.xyz What’s wrong with them? I’ve been doing this for so long now, I don’t see the issues anymore. 🤣 (Doesn’t mean they don’t exist.)
@movq@www.uninformativ.de the flags are SO WEIRD AND CONFUSING especially tar
which all look keysmashed and make no sense and the order matters apparently?!?! and find
is SO SLOW and when i look at a typical command for it on stack overflow it looks like fucking regex it’s EVILLLLL LMAO
@movq@www.uninformativ.de Same here, you do get used to things over time and build a sort-of “muscle memory”. But you’re right, maybe they have terrible interfaces and usage options? 🤔
@kat@yarn.girlonthemoon.xyz @prologic@twtxt.net Given that all these programs are super old (tar
is from the late 1970ies), while trying to retain backwards-compatibilty, I’m not surprised that the UI isn’t too great. 🤔
find
has quite a few pitfalls, that is very true. At work, we don’t even use it anymore in more complex scenarios but write Python scripts instead. find
can be fast and efficient, but fewer and fewer people lack the knowledge to use it … The same goes for Shell scripting in general, actually.
@movq@www.uninformativ.de Yeah I actually use sift a lot these days for most “searching” – at least code and text searching. For finding files by name I still use find | grep
.
@kat@yarn.girlonthemoon.xyz @movq@www.uninformativ.de @prologic@twtxt.net Yeah, I’m also having them in my repertoire for ages, so I’m used to the weird command line options. From today’s perspective, they’re not consistent with the rest of the typical shell utilities, that’s for sure.
Regarding find | grep foo
, I recommend find -name '*foo*'
, prologic. Also, I regularly use -type d
and -type f
to find directories or files.
@movq@www.uninformativ.de yeahhh very true stuff. find is annoying af i just use fd when i can