Skip to content

Instantly share code, notes, and snippets.

@anotheremily
Created September 15, 2010 13:52
Show Gist options
  • Save anotheremily/580759 to your computer and use it in GitHub Desktop.
Save anotheremily/580759 to your computer and use it in GitHub Desktop.
#!/bin/bash
# get a sorted, deduped file list from grep
# instead of the standard grep output
# put in the grep parameters in place of
# GREPPARAMS
# @todo get around to making this a real shell script
grep GREPPARAMS | cut --d : -f 1 | sort | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment