Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ruby -pi -e.bak - Windy City Rails

ruby -pi -e.bak - Windy City Rails

ZSH is awesome

Bryan Liles

October 06, 2012
Tweet

More Decks by Bryan Liles

Other Decks in Programming

Transcript

  1. | @bryanl | @thunderboltlabs | #!/bin/*sh vi *(m0) # re-edit

    all files changed today! ls *(^m0) # files NOT modified today ls -l *(m4) # list files modified exactly 4 days ago ls -l *(.m4) # list files modified exactly 4 days ago (ignore directories) vi **/main.php # where ever it is in hierarchy ls -l **/main.{php,js,css} ls fred^erick* # list all files fred* except frederick* ls *.^pdf # list all but pdf's ls (x*~x[3-5]) # list files x* except x3 to x5 ls x^[3-5]* # list files x* except x3 to x5 ls **/*~*/.git/* # ignore all git subdirectories *~* matches a path
  2. | @bryanl | @thunderboltlabs | #!/bin/*sh _________ < Thanks! >

    --------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||