Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sed in OS X 10.13.1 doesn't have -r flag for extended regex #1

Open
mfcovington opened this issue Nov 28, 2017 · 1 comment
Open

sed in OS X 10.13.1 doesn't have -r flag for extended regex #1

mfcovington opened this issue Nov 28, 2017 · 1 comment

Comments

@mfcovington
Copy link

For OS X OS X 10.13.1, I get this error when running alan:

sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]

I thought maybe we need to use sed -E instead of sed -r to unlock the extended regex feature. however, that just returns this:

usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]]
        [-e pattern] [-f file] [--binary-files=value] [--color=when]
        [--context[=num]] [--directories=action] [--label] [--line-buffered]
        [--null] [pattern] [file ...]

Running alanpartridge give me:

usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]]
    [-e pattern] [-f file] [--binary-files=value] [--color=when]
    [--context[=num]] [--directories=action] [--label] [--line-buffered]
    [--null] [pattern] [file ...]
awk: invalid -v option

awk: invalid -v option

So, I think it may just be an issue of different versions of awk/sed/grep that have different flags/options available.

@mpdunne
Copy link
Owner

mpdunne commented Nov 29, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants