i have a list that contain data in the format(year-month-day-hrmn-00S.GHTUJ_035)
2017-01-22-1522-00S.GHTUJ_035
2016-12-21-1725-00S.GHTUJ_035
2019-11-25-1123-00S.GHTUJ_035
2015-09-25-1329-00S.GHTUJ_035
Now i want to convert year-month-day
portion of the data to julianday and want to paste it in its right side. so my expected output should be
2017-01-22-1522-00S.GHTUJ_035 022
2016-12-21-1725-00S.GHTUJ_035 ...
2019-11-25-1123-00S.GHTUJ_035 329
2015-09-25-1329-00S.GHTUJ_035 ...
i am able to write only half part of the script so i need experts help.Thanks in advance.
while read line;
do
echo $line
done< list