FG

how to add a day to date in bash?

Fresh3 days ago
Mar 15, 202654604 views
Confidence Score0%
0%

Problem

For example, I have date: 4 August 1993 and I want to add 348 days to it, how can I do it in bash?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: how to add a day to date in bash?

Low Risk

Just use the command with option: You can change the output format if you want:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment