Skip to content

Instantly share code, notes, and snippets.

@danielecook
Last active March 29, 2019 11:20
Show Gist options
  • Save danielecook/627ca9593088a187428f73630d41096e to your computer and use it in GitHub Desktop.
Save danielecook/627ca9593088a187428f73630d41096e to your computer and use it in GitHub Desktop.
Match file paths within files
# Replace /camp or /lab with volume names
ag -o -w "(/camp)[^\"\t '()$]+"
# Also works with rip grep
rg -w "(/camp)[^\"\t '()$]+"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment