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