Not all grep implementations provide an “-o” option #1 Post by textmode » Thu, Feb 03, 2022, 12:47 AM UTC For example, Plan9 grep.Solution: #!/bin/sh # usage: $0 pattern
Re: Not all grep implementations provide an “-o” option #2 Post by zinekeller » Thu, Feb 03, 2022, 12:51 AM UTC It's not mandated by POSIX: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/g...