Skip to content

Instantly share code, notes, and snippets.

@rjurney
Last active January 18, 2025 10:31
Show Gist options
  • Save rjurney/5dbaa577b90984e15ed0dc2c55113163 to your computer and use it in GitHub Desktop.
Save rjurney/5dbaa577b90984e15ed0dc2c55113163 to your computer and use it in GitHub Desktop.
Warp.dev shell command to count my papers on graph pattern matching: graphlets and network motifs
Prompt: Find all instances of files containing the term 'motif' or 'graphlet' in this folder
or any below it. List the filenames, then print the total count of unique files.
(find . -type f -exec grep -l -i "motif\|graphlet" {} \; | sort -u | tee >(wc -l))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment