Re:Ask HN: As a data scientist, what should be in my toolkit...
by Ultimatt on Tuesday February 20, 2018 @05:08AM
(#16419139)
I'd gently suggest basic CLI Perl over BASH for cleaning up files, as it combines grep/sed/awk in a language thats more generally useful.
[ Parent
| on HN ]
Re:Ask HN: As a data scientist, what should be in my toolkit...
by jonathankoren on Tuesday February 20, 2018 @05:28AM
(#16419235)
Agreed. Perl was designed for text munging, and is superior to pretty much everything for this task.
WRT bash, where to begin? In the past 40 years, there’s pretty much a better tool for everything someone tries to do with bash. It lives on pretty much through inertia and pride.
Re:Ask HN: As a data scientist, what should be in my toolkit...
by gkya on Wednesday February 21, 2018 @04:25AM
(#16428092)
FreeBSD sh(1) (not bash(1)) man page. That's just how I understood how to shell. Nowadays I'm running Debian and my $SHELL is /bin/bash, but when I was on FreeBSD I really learnt tools like make(1), sh(1); the man pages were pieces of art. Having read sh(1), I do have a nice grasp of how shell works in general, to which knowledge I can add anytime the higher-level goodies bash has to offer (though I generally prefer keeping it POSIX, and using an actual programming language when it doesn't cut it).