0

How to assign "time" variable like this:

#!/bin/bash
echo -n "License"
read license
time=echo date +"%H:%M"
echo $license $time

when I run that script, the time variable is empty. But if I delete echo license and read license, it works.

Thanks in advance

0 Answers0