Skip to content

Instantly share code, notes, and snippets.

View bashyal's full-sized avatar

Pradeep Bashyal bashyal

  • Minneapolis, MN
View GitHub Profile
pkg <- "myDir/file_1.0.0.tar.gz"
install.packages(pkg, repos=NULL, type="source")
@bashyal
bashyal / gist:9145373
Created February 21, 2014 22:59
Grep odd/even numbers
> cat search.log | awk '{ print $1 }' | grep [24680]$ | wc -l # Count even numbers
> cat search.log | awk '{ print $1 }' | grep [13579]$ | wc -l # Count odd numbers