Com o GNU date
:
date +"This is week: %U of %Y, Sprint: %y(W%U-$(date -d 'now + 7 days' +%U))"
alternativamente:
date +"This is week: %U of %Y, Sprint: %y(W%U-$(date -d 'next week 12:00' +%U))"
Como imprimir a próxima semana usando o comando date?
date +"This is week: %U of %Y, Sprint: %y(W%U-%U)"
A saída deve ser
This is week: 04 of 2017, Sprint: 17(W04-05)
Em vez de
This is week: 04 of 2017, Sprint: 17(W04-04)
Com o GNU date
:
date +"This is week: %U of %Y, Sprint: %y(W%U-$(date -d 'now + 7 days' +%U))"
alternativamente:
date +"This is week: %U of %Y, Sprint: %y(W%U-$(date -d 'next week 12:00' +%U))"