Skip to content

Instantly share code, notes, and snippets.

@genghisjahn
Last active August 29, 2015 14:17
Show Gist options
  • Save genghisjahn/96132c8f37f51cd4d314 to your computer and use it in GitHub Desktop.
Save genghisjahn/96132c8f37f51cd4d314 to your computer and use it in GitHub Desktop.
Pipe Command Stuff you need to Memorize

Memorize this stuff!!

  • git br | grep deeplink returns all the branches that have deeplink in the name.
  • find . | grep language finds all the files with the string language in the name.
  • find . -name "*.sql" finds all the files that end with .sql in the name.
  • find . "*user*" | xargs cat finds each file with user in the title and then cats them all.
  • find . -name "*.go" | xargs cat | wc -l finds each file that ends with .go and counts the total lines of code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment