I have a text file with many lines and each line contains today's date in the format cyyddd (century,year,day of the year) in different position. How to chop all the date using shell script (sh/csh)?
However, the +%Y%m%d only shows the date in the format 20030305 instead of 003064(0->century, 03->year, 064->day 64 of year 2003). How can we transform into the day of the year?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.