Skip to content

Instantly share code, notes, and snippets.

@romiras
Created February 26, 2023 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romiras/77eaad109fed0555339fdaaff08677ba to your computer and use it in GitHub Desktop.
Save romiras/77eaad109fed0555339fdaaff08677ba to your computer and use it in GitHub Desktop.
Replace shebang line in place in all files in Ruby `bin`directory from version 2.7.6 to 2.7.7 on MacOS
# using ripgrep on macos
for f in $(rg --files-with-matches -F '2.7.6/'); do sed -i '' 's/\/2\.7\.6\//\/2\.7\.7\//' $f; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment