3 ms·
> I see no reason to prefer this over programs like sed, bash is after all a shell, intended firstly for running external commands. Are there systems that don'
by collyw 7y ago
> I see no reason to prefer this over programs like sed, bash is after all a shell, intended firstly for running external commands.
Are there systems that don't come with sed installed?
(Some docker containers I have logged into don't seem to have less).
- hnlmorg 7y agoI've never known `sed` not be installed but I have been caught out by different implementations of sed before.
- Jenz 7y agoWell, less is only intended for interactive use AFAIK, in contrast to sed which is very much scriptable; and part of the POSIX standard [1] [1]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/sed.html https://pubs.opengroup.org/onlinepubs/9699919799/utilities/s...