Bash note

From Ittichai Chammavanijakul's Wiki
Jump to: navigation, search
  • Create directory date hierarchy
$ mkdir -p months/{2010..2014}/{01..12}
  • Easter day
# Easter day in year 4077
$ ncal -o 4077
# Different date format
date -d"`ncal -o 4077`" +"%Y-%m-%d"
  • Search for syntax based keywords.
apropos "Network"