Pages

Sunday, August 17, 2014

Sysadmin day date of any given year

$ YEAR=2015; date -d${YEAR}0801-$(date -d${YEAR}0801+2days +%u)days +%b\ %e

Calculate Sysadmin day of any given year using 2 `date`. Code based on http://ift.tt/1kLjqGf




commandlinefu.com


by David Winterbottom (codeinthehole.com)






from All commands http://ift.tt/1mXfoGu

No comments:

Post a Comment