Skip to content

Instantly share code, notes, and snippets.

@gustavofranke
Last active April 18, 2016 14:42
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 gustavofranke/d2c163dc3e0f587c3923 to your computer and use it in GitHub Desktop.
Save gustavofranke/d2c163dc3e0f587c3923 to your computer and use it in GitHub Desktop.
Basic use cases of cmd line programs

GREP

Filter by file extension: grep -r --include \*.java <the-expression> .

Recursive Find and Replace

find ./ -type f -readable -writable -exec sed -i 's/this/by that/g' {} ;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment