Skip to content

Instantly share code, notes, and snippets.

View gautam-nutalapati's full-sized avatar
🌱

Gautam Nutalapati gautam-nutalapati

🌱
View GitHub Profile
@gautam-nutalapati
gautam-nutalapati / useful-terminal-commands.txt
Created May 16, 2023 14:54
Bash Useful Search Commands (to manage bulk git repositories)
# Find multiple texts in all files under current directory
grep -rns '.' -e 'text-1' -e 'text-2'
# Find text 'text-1' in files of name 'ci.yaml' under current directory
grep -rns '.' -e 'text-1' --include=ci.yaml
# Find text 'text-1' in files of name 'ci.yaml' under current directory and pring 2 lines after the text found
# (-B for lines before and -C for both above and below)
grep -rns '.' -e 'text-1' --include=ci.yaml -A 2