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

Advanced unix and Sed #26

Open
Gammerdinger opened this issue Jun 26, 2023 · 0 comments
Open

Advanced unix and Sed #26

Gammerdinger opened this issue Jun 26, 2023 · 0 comments

Comments

@Gammerdinger
Copy link
Contributor

Care with sed on the Advanced Unix module. Macs come with BSD sed, but the lesson is for GNU sed. There is some functionality in the lesson that doesn't work in BSD sed which works in GNU sed. To install GNU sed on a Mac, you can install Homebrew:

https://brew.sh

Do the "Next Steps" which were like:

(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/$USER/.bash_profile
eval "$(/opt/homebrew/bin/brew shellenv)"

Install GNU sed with the following command:

brew install gnu-sed

Then you should be able to call GNU sed with the gsed command.

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

1 participant