3 ms·
Reading this summarizes my feelings on what kind of new language we need. Something that makes workloads usually delegated to find, grep, sed and awk coherent
by wodenokoto 3y ago
Reading this summarizes my feelings on what kind of new language we need.
Something that makes workloads usually delegated to find, grep, sed and awk coherent and easy to use, allows streaming data between functions/commands and can still be used to glue things together.
Can I use Perl instead of bash/as my command line ? Should I start learning Perl?
- thesuperbigfrog 3y ago>> Can I use Perl instead of bash/as my command line ? No. Perl is not a command line shell just as Python and Ruby are not. >> Should I start learning Perl? If you are doing workloads with the command line tools you list above (find, grep, sed and awk), yes. If you are familiar with bash, sed, and awk you will find Perl familiar-looking and very handy.
- stubish 3y agoI found Perl a practical replacement on the command line (not as the command line) to command line sed and awk, to the point I never learned sed and awk. Thanks to the -p and -e options (perl -pe 's/foo/bar/'). It never felt like a practical replacement to find. It would probably work as a grep replacement, but my fingers already knew grep. Today? Don't know. Back in the day though, in your standard heterogeneous environment it was the most practical way of working since your awk and sed seemed to be platform dependent in many ways (awk, gawk, nawk, proprietary extensions etc.)