Skip to content

Instantly share code, notes, and snippets.

@titipata
Last active August 29, 2015 14:13
Show Gist options
  • Save titipata/0cb4bf221a47dcc3110e to your computer and use it in GitHub Desktop.
Save titipata/0cb4bf221a47dcc3110e to your computer and use it in GitHub Desktop.
Notes for some bash script that I use many times a day and forget

Notes on bash script

  • wc count number of line.
ls -1 | wc -l
  • grep command utilitiy to searches the input files for pattern. See more in history of grep. Well, it's intuitive if you remember it as g|re|p (global regular expression print) :)
ls -1 | grep *.zip | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment