1
How can I create a datetime object, format it and assign it to a variable? The following does not work:
#!/usr/bin/env bash
time=14:00
timex = date -d "$time 5 minutes ago" +'%H:%M'
echo $timex
Result:
line 3: timex: command not found
. But why?