Skip to content

Instantly share code, notes, and snippets.

@hogashi
Created March 15, 2021 02:18
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 hogashi/19583f299d8e85cff7c8376b511fa245 to your computer and use it in GitHub Desktop.
Save hogashi/19583f299d8e85cff7c8376b511fa245 to your computer and use it in GitHub Desktop.
#!/bin/bash
COMMAND="$1"
BEFORE_STR="$2"
AFTER_STR="$3"
prt "$COMMAND" "$BEFORE_STR" "$AFTER_STR" $(git grep --name-only "$BEFORE_STR")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment