3 ms·
Oh man, wish I'd seen this a few days ago - ended up doing something ugly using printf and xargs...
by mattbillenstein 7y ago
Oh man, wish I'd seen this a few days ago - ended up doing something ugly using printf and xargs...
- gpvos 7y agoUse perl instead.
- mattbillenstein 7y agoWORSE
- gpvos 7y agoNot really, but I guess tastes differ. Perl is still my go-to language for anything that's just too much for a shell script.
- mikelward 7y agoYou should try stackoverflow or unix.stackexchange.com. e.g. my answer https://unix.stackexchange.com/a/41595/3169 https://unix.stackexchange.com/a/41595/3169
- mattbillenstein 7y agoHmm, still not able to do what I want with this -- I want to take an argument like: foo.sh --clean bar.yml And actually run something like: blah -e '{"clean": true}' bar.yml where -e and the thing in '' are two separate args...