|
|
|
Ask HN: How do I become a shell god?
|
|
35 points
by h-1
2011 days ago
|
|
It seems many things can be done with a one-liner or short shell script, but I'm not fluent enough to recognize those patterns yet. I do know a few basic commands, but much of *nix seems like a bag of undocumented tricks; and man pages are hieroglyphic IMO. Is there a cohesive path to learning all the tricks? All of them! |
|
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V...
From there, you have a better background for reading the documentation of shell implementations, like Bash.
Also study Awk:
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/a...
Those who don't know Awk do comical things with cockamamie combinations of cut, sed, grep, echo ... and clumsy loops written in shell.
Other than shell syntax and semantics, it's a matter of knowing a large number of utilities.