Search Results

Search: Posts Made By: Prasannag87
2,584
Posted By Prasannag87
Thanks!! YrDoy=`date '+%Y%j'` works perfectly...
Thanks!!
YrDoy=`date '+%Y%j'` works perfectly for me!!
2,584
Posted By Prasannag87
Thanks a lot!! Actually, I need to derive a...
Thanks a lot!!
Actually, I need to derive a filename from it.

${FILE_NAME_WO_EXTN}_${year}${doy}.ZIP. Can you please help me how can I use it here
2,584
Posted By Prasannag87
Working with let command
Hi,

I need to find out the day of the year and it always needs to be 3 digits:


#!/bin/ksh
doy=`date '+%j'`
let doy=$doy-1
echo doy


Output is 36, but I need it to print as 036
...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 03:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy