2 ms·
That makes sense! When I write one liners I tend to build them up in bash, and so when I want them to be reusable I do the same as your (3) but targeting bash.
by jefftk 6y ago
That makes sense!
When I write one liners I tend to build them up in bash, and so when I want them to be reusable I do the same as your (3) but targeting bash. Then when they get at all complicated I rewrite in python.
- boring_twenties 6y agoThe thing about bash is that it's much less powerful than perl, while at the same time being more prone to surprising, undesirable behavior and write-only code. The worst of both worlds.
- jefftk 6y agoI agree that bash has a lot of flaws, but on the other hand it makes a much better shell than perl. I really value using the same language for ordinary interaction with my computer and automation of very simple tasks.