Skip to content

Instantly share code, notes, and snippets.

@robstenzinger
Created January 4, 2014 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robstenzinger/8260749 to your computer and use it in GitHub Desktop.
Save robstenzinger/8260749 to your computer and use it in GitHub Desktop.
Shell command, looks for lines of text in .md files in the current directory containing the text "ACHIEVEMENT:", then writes the output/results to a separate file.
# looks for lines of text in .md files in the current directory containing the text "ACHIEVEMENT:"
# > then writes the output/results to a separate file
grep -h -w -i "ACHIEVEMENT:" ./*.md > ./achievements/achievements.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment