Instead of
-e Exit immediately if a command exits with a non-zero status.
perhaps something more like this:
-e Exit immediately if a command exits with a non-zero status,
unless the command is in a special position (see info or man pages).
or something related.
Otherwise, the help d
Thank you very much!
So easy, I am just learning about bash scripting.
date -d 'next month' +%b%Y
What would happen in December 2016. Will it give me Jan2017?
Val!
On Sunday, January 24, 2016 5:31 PM, Dave Rutherford
wrote:
On Sun, Jan 24, 2016 at 5:30 PM, Val Krem wrote:
> I am trying
On Sun, Jan 24, 2016 at 5:30 PM, Val Krem wrote:
> I am trying to get a variable that combines the next month(Feb) and
current year (2016) from the current date
[...]
> temp_date=$(date | awk -F ' ' '{print $2,$6}' | tr -d ' ')
Wow, that's overkill. You don't need the -F ' ' options to awk, sin