Last active
March 29, 2019 11:20
-
-
Save danielecook/627ca9593088a187428f73630d41096e to your computer and use it in GitHub Desktop.
Match file paths within files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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