How can I get the day of the year in shell?
date \'+%V\' will give me the week of the year, which is 15 for today; but I need to find t
date \'+%V\'
Use the date command and the %j option...
date
%j
doy=$(date +%j)
From the coreutils date manual:
%j day of year (001..366)