Skip to content

Instantly share code, notes, and snippets.

@daa233
Last active February 13, 2016 10:05
Show Gist options
  • Save daa233/ace9ddbbf78cebdaf2ae to your computer and use it in GitHub Desktop.
Save daa233/ace9ddbbf78cebdaf2ae to your computer and use it in GitHub Desktop.
Some commands on bash learned in LPTHW ex46.

Few commands in bash.

find

find . -name "*.pyc" -print

find all files with .pyc postfix.

find . -name "*.pyc" -exec rm {} \;

find all files with .pyc postfix and delete them.

grep

grep -r "NAME" *

Seach string "NAME" in all files.

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