Perl is no longer shipped with the base system in some Linux distributions, so I guess Python would be a better choice these days. But this should be done with simple tools if portability is important. I don't see any reason why not to replace the one-liner with a call to an external bash script that would have a lot more flexibility in handling the task.
Perl is no longer shipped with the base system in some Linux distributions, so I guess Python would be a better choice these days. But this should be done with simple tools if portability is important. I don't see any reason why not to replace the one-liner with a call to an external bash script that would have a lot more flexibility in handling the task.