Skip to content

Instantly share code, notes, and snippets.

@obihann
Last active March 25, 2019 12:25
Show Gist options
  • Save obihann/ff5df377fa57830fb6fb3ff10c41db23 to your computer and use it in GitHub Desktop.
Save obihann/ff5df377fa57830fb6fb3ff10c41db23 to your computer and use it in GitHub Desktop.
grep for common comment strings
grep -rniE "[ ]?\W\D(todo|fixme|hack|xxx|note|optimize|bug|wtf|later|lazy|why|fix)" *
grep -riEn --include=\*.php "(todo|hack|wtf|fixme|later|lazy|why|xxx|note|(^|[^e])bug|optomize|shit|fuck|damn)" ./
grep -riEn --exclude=\*.css "(todo|hack|wtf|fixme|later|lazy|why|xxx|note|(^|[^e])bug|optomize|shit|fuck|damn)" ./
grep --color=always -riEn "(todo|hack|wtf|fixme|later|lazy|why|xxx|note|(^|[^e])bug|optomize|shit|fuck|damn)" ./
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment