2 ms·
When my shell scripts get too large, I usually switch to Perl. Still best in class at handling text processing with a few shell commands here and there.
by qalmakka 3y ago
When my shell scripts get too large, I usually switch to Perl. Still best in class at handling text processing with a few shell commands here and there.
- amitizle 3y agoI'm doing that with Ruby, and tgrought the years, it became also true for scripts that are fetching data, iterating over JSON objects, etc.
- lambdaba 3y agoWhat makes Ruby great for this is you can specify dependencies inline require 'bundler/inline' gemfile do source 'https://rubygems.org' gem 'json', require: false gem 'nap', require: 'rest' gem 'cocoapods', '~> 0.34.1' end
- theanonymousone 3y agoI do the same, in Python. I do my best to keep it zero-dependency to maximise portability.