Issue in Julian date conversion

view full story

http://www.unix.com – All, I am facing an issue with julian date conversion.. current command: Code: echo `date +%Y%j` `cat -n /home/user/FILENAME.dat |awk '{printf "%08s", $2}'` The above command is working good. But in the above bolded part, it is converting system date to julian date. However I want to convert the date present in the file "FILENAME.dat". example: If the date in file is 20120201 (that is YYYYMMDD format), then I want the output to be a combination of both julian date and standard date: Desired output: 20120032 20120201 Note that I want it to be a single com (HowTos)